This changelog references the relevant changes (bug and security fixes).
Version 2.2.0 - 2021-01-11
Version 2.1.1 - 2019-10-20
ImageWorkshop::initFromPathVersion 2.1.0 - 2018-04-17
pasteImage methodVersion 2.0.9 - 2015-07-05
Version 2.0.8 - 2015-06-01
Version 2.0.7 - 2015-03-22
ImageWorkshop::initFromPath factory working with remote URLfixOrientation method to layer to change image orientation based on EXIF orientation dataVersion 2.0.6 - 2014-08-01
@jasny (https://github.com/jasny) contribution, new methods :
ImageWorkshopLayer::resizeToFit() resizes an image to fit a bounding box.ImageWorkshopLayer::cropToAspectRatio() crops either to width or height of the document to match the aspect ratio.Documentation here : https://github.com/Sybio/ImageWorkshop/pull/37#issue-28704248
Version 2.0.5 - 2013-11-12
$interlace = true; // set true to enable interlace, false by default
$layer->save($dirPath, $filename, $createFolders, $backgroundColor, $imageQuality, $interlace);
Thanks @dripolles (https://github.com/dripolles) & @johnhunt (https://github.com/johnhunt)
Version 2.0.4 - 2013-09-11
Version 2.0.2 - 2013-06-14
Note:
$layer->resizeInPixel(null, 0 /* or negative number */, null);
It will generate a 1 pixel height image, not 0.
Version 2.0.1 - 2013-06-03
Version 2.0.0 - 2012-11-21
New version of ImageWorkshop ! The library is now divided in 3 main classes for cleaned code:
Technically, only the initialization change compared with the 1.3.x versions, check the documentation: http://phpimageworkshop.com/documentation.html#chapter-initialization-of-a-layer
Here an example, before and now:
// before
$layer = new ImageWorkshop(array(
'imageFromPath' => '/path/to/images/picture.jpg',
));
// now
$layer = ImageWorkshop::initFromPath('/path/to/images/picture.jpg');
And also the installation of the class: http://phpimageworkshop.com/installation.html
The documentation has been updated, you can now check the documentation of each version since 1.3.3: (Ex: http://phpimageworkshop.com/doc/9/initialize-from-an-image-file.html?version=2.0.0, http://phpimageworkshop.com/doc/9/initialize-from-an-image-file.html?version=1.3.3)