File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ $image->save('image2.jpg');
143
143
144
144
``` php
145
145
$image = new ImageResize('image.jpg');
146
- $image->crop(200, 200, ImageResize::CROPCENTER);
146
+ $image->crop(200, 200, true, ImageResize::CROPCENTER);
147
147
$image->save('image2.jpg');
148
148
```
149
149
@@ -154,15 +154,15 @@ For instance passing the crop mode `CROPTOP` will result as 100px taken off the
154
154
155
155
``` php
156
156
$image = new ImageResize('image.jpg');
157
- $image->crop(200, 200, ImageResize::CROPTOP);
157
+ $image->crop(200, 200, true, ImageResize::CROPTOP);
158
158
$image->save('image2.jpg');
159
159
```
160
160
161
161
On the contrary passing the crop mode ` CROPBOTTOM ` will result as 100px taken off the top leaving you with 200px × ; 200px.
162
162
163
163
``` php
164
164
$image = new ImageResize('image.jpg');
165
- $image->crop(200, 200, ImageResize::CROPBOTTOM);
165
+ $image->crop(200, 200, true, ImageResize::CROPBOTTOM);
166
166
$image->save('image2.jpg');
167
167
```
168
168
You can’t perform that action at this time.
0 commit comments