diff --git a/README.md b/README.md index f56bbe3..aa68e1d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ use Utopia\Image\Image; //crop image $image = new Image(\file_get_contents('image.jpg')); $target = 'image_100x100.jpg'; -$image->crop(100, 100); +$image->crop(100, 100, Image::GRAVITY_NORTHWEST); $image->save($target, 'jpg', 100); $image = new Image(\file_get_contents('image.jpg')); @@ -54,4 +54,4 @@ Utopia Image requires PHP 7.4 or later. We recommend using the latest PHP versio ## Copyright and license -The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php) \ No newline at end of file +The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)