Skip to content

Commit 2892593

Browse files
Merge pull request #112 from denx-b/master
Corrects a typo in specifying arguments
2 parents 203210e + b32552a commit 2892593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ $image->save('image2.jpg');
143143

144144
```php
145145
$image = new ImageResize('image.jpg');
146-
$image->crop(200, 200, ImageResize::CROPCENTER);
146+
$image->crop(200, 200, true, ImageResize::CROPCENTER);
147147
$image->save('image2.jpg');
148148
```
149149

@@ -154,15 +154,15 @@ For instance passing the crop mode `CROPTOP` will result as 100px taken off the
154154

155155
```php
156156
$image = new ImageResize('image.jpg');
157-
$image->crop(200, 200, ImageResize::CROPTOP);
157+
$image->crop(200, 200, true, ImageResize::CROPTOP);
158158
$image->save('image2.jpg');
159159
```
160160

161161
On the contrary passing the crop mode `CROPBOTTOM` will result as 100px taken off the top leaving you with 200px × 200px.
162162

163163
```php
164164
$image = new ImageResize('image.jpg');
165-
$image->crop(200, 200, ImageResize::CROPBOTTOM);
165+
$image->crop(200, 200, true, ImageResize::CROPBOTTOM);
166166
$image->save('image2.jpg');
167167
```
168168

0 commit comments

Comments
 (0)