Skip to content

Commit 419a9f6

Browse files
committed
Added new resize functions to the Readme
1 parent 9d4fe7d commit 419a9f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ You can enable by passing ```true``` to any resize function:
9191
$image = new ImageResize('image.jpg');
9292
$image->resize(500, 300, $allow_enlarge = True);
9393
$image->save('image2.jpg');
94+
95+
$image = new ImageResize('image.jpg');
96+
$image->resizeToShortSide(300, $allow_enlarge = True);
97+
$image->save('image2.jpg');
9498
```
9599

96100
If you are happy to handle aspect ratios yourself, you can resize directly:

0 commit comments

Comments
 (0)