Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmcarvalho authored Feb 24, 2017
1 parent e47e723 commit 6a03050
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ class ExamplesTable extends Table
// in App\Model\Table\ExamplesTable.php

$this->addBehavior('Upload.Upload', [
'file1' => [
'image' => [
'format' => 'jpg',
'file1' => [
'image' => [
'format' => 'jpg',
'quality' => 75,
'watermark' => WWW_ROOT . 'img' . DS . 'watermark.png',
'watermark_position' => 'bottom-right'
'resize' => [
'width' => 500,
'height' => 600,
],
'crop' => [
'width' => 400,
'height' => 400,
],
'resize' => [
'width' => 500,
'height' => 600,
],
'crop' => [
'width' => 400,
'height' => 400,
],
'thumbnails' => [ // Optional
[
'width' => 450,
Expand All @@ -119,9 +119,8 @@ class ExamplesTable extends Table
'height' => 200,
'watermark' => false;
]
],
],
'prefix' => 'cover_'
]
]
]
]);
```
Expand Down

0 comments on commit 6a03050

Please sign in to comment.