We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58bfac1 commit 9d4fe7dCopy full SHA for 9d4fe7d
README.md
@@ -66,6 +66,18 @@ $image->resizeToWidth(300);
66
$image->save('image2.jpg');
67
```
68
69
+To resize an image according to a given measure regardingless its orientation (keeping aspect ratio):
70
+
71
+```php
72
+$image = new ImageResize('image.jpg');
73
+$image->resizeToLongSide(500);
74
+$image->save('image2.jpg');
75
76
77
+$image->resizeToShortSide(300);
78
79
+```
80
81
To resize an image to best fit a given set of dimensions (keeping aspet ratio):
82
```php
83
$image = new ImageResize('image.jpg');
0 commit comments