Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux authored Jun 2, 2021
1 parent ad337a3 commit 7761ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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)
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)

0 comments on commit 7761ff5

Please sign in to comment.