[TOC]
Although I tried to keep the update to Version 2.x of Intervention Image as compatible as possible, some things have changed. Some methods became redundant, other things have been simplified and therefore had to change.
- Additional support of PHP's Imagick extension
- Sharpening Images
- Auto Orientating
- 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.
- height() retrieves current height of image.
- sharpen() applies sharpen filter to image.
- orientate() auto-adjusts image orientation.
- filter() applies filter to an image.
- getCore() get resource of image driver (Imagick object or GD resource).
- fit() replaces the old
grab()
method.
- Method gamma() now only accepts one argument for gamma correction.
- Changed arguments for resize() method. Now uses callback to define further options.
- Changed arguments for circle() method. Now uses callback to define further options.
- Changed arguments for ellipse() method. Now uses callback to define further options.
- Changed arguments for line() method. Now uses callback to define further options.
- Changed arguments for rectangle() method. Now uses callback to define further options.
open()
no longer exists, use make() instead.raw()
no longer exists, use make() instead.grayscale()
no longer exists, use greyscale() instead.
width
property has been removed, use width() instead.height
property has been removed, use height() instead.
- To keep naming consistent the filename of the configuration file for intervention/imagecache was renamed from
config/imagecache.php
toconfig/config.php
. - For standalone use instantiate objects from
Intervention\Image\ImageManagerStatic
instead ofIntervention\Image\Image
. (See example)