Upgrading from 1.x to 2.x
- Additional support of PHP’s Imagick extension
- Sharpening Images
- Image Filter architecture
In order to keep your application compatible, you need to keep in mind the following changes, when upgrading.
- width() retrieves current width of image.
- retrieves current height of image.
- sharpen() applies sharpen filter to image.
- auto-adjusts image orientation.
- filter() applies filter to an image.
- get resource of image driver (Imagick object or GD resource).
Changed Method names
- replaces the old method.
- Method gamma() now only accepts one argument for gamma correction.
- Changed arguments for method. Now uses callback to define further options.
- Changed arguments for ellipse() method. Now uses callback to define further options.
- Changed arguments for method. Now uses callback to define further options.
- Changed arguments for rectangle() method. Now uses callback to define further options.
Removed methods
open()
no longer exists, use make() instead.raw()
no longer exists, use instead.- no longer exists, use greyscale() instead.
width
property has been removed, use instead.height
property has been removed, use height() instead.
Other
- For standalone use instantiate objects from
Intervention\Image\ImageManagerStatic
instead of . (See example)