##v2 to v3
V3 is a major rewrite where we removed several dependencies and tried to streamline all manipulations.
Note that some results might be slightly different from previous versions as we made improvement across a number of methods.
##Working with the Image object.
The Image
class has been slimmed down to only being responsible for initializing and delegating to the correct driver (GD or Imagick).
As of V3 there are 3 ways to create a new image instance:
$image = new Image('path/to/image.jpg');
$image = Image::load('path/to/image.jpg');
$image = Image::useImageDriver(ImageDriver::Imagick)->load('path/to/image.jpg');
##Other changes
- The option to create a manipulations instance has been removed.
- The
apply
method has been removed.
- Calling a manipulation method multiple times will now apply all manipulations.
- The
border
method now accepts a BorderType enum value, and it's parameters have been reordered.
- The
orientation
method now accepts a Orientation enum value.
- The
flip
method now accepts a FlipDirection enum value.
- The
fit
method now accepts a Fit enum value.
- The
crop
method now accepts a CropPosition enum value.
- The
focalCrop
method has the $zoom parameter removed.
- The
watermark
method has been renamed to the insert
method and accepts additional parameters.
- v
watermarkOpacity
, watermarkPadding
, watermarkHeight
and watermarkWidth
methods have been removed.