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');
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
161161On 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
You can’t perform that action at this time.
0 commit comments