Releases: stefangabos/Zebra_Image
Releases · stefangabos/Zebra_Image
2.8.2
2.8.1
- fixed an issue where in PHP 8 the script would break with certain GIF images; see #26 - thank you Marcus Nyberg for reporting!
- fixed issue where animated WEBP images would break the script; animated WEBP images are not (yet) supported by GD; thanks to Yani for reporting this one - see #25
2.8.0
- fixed potential warning when dealing with bad EXIF information; see #24; thank you userlond for the fix!
- fixed a bug with
WEBP
images in PHP version lower than 7.0.1 - fixed a potential bug when using
ZEBRA_IMAGE_BOXED
orZEBRA_IMAGE_NOT_BOXED
methods when resizing - lots of minor bug fixes and source code formatting because we are now using PHPStan for static code analysis and PHP CodeSniffer for detecting coding standards violations, which are now PSR12-ish with a few of the rules excluded
2.7.0
2.6.0
- added sport for the WEBP format
- handle GD bug where transparency is lost when rotating at angles of 90, 180 and 270 degrees
- fixed #22; thanks to Almir Neto for reporting!
2.5.0
- fixed bug introduced in previous release because of the new argument added to the crop method
- progressive JPEGs can now be saved by setting the newly added jpeg_interlace property; thanks tohizma for suggesting!
2.4.0
- added the
background_color
argument to the crop() method; used when the cropping coordinates are off-scale (negative values and/or values greater than the image's size) to fill the remaining space; see #18; thank you Thomas Skerbis!
2.3.0
- the default value of the "background_color" argument of the "resize" method is now -1 (for preserving transparency)
- fixed bug where saving to gif would lose transparency
- fixed transparency not being preserved when rotating PNG images
- fixed warnings shown when the target file was a gif but the source file was not
- memory is freed after images are written
2.2.7
- fixed a bug where the script would generate a warning if
auto_handle_exif_orientation
wasTRUE
and the image in case was not a JPEG; thanks to @Hoffi1, see #11 - fixed a bug where resizing transparent images to a format not supporting transparency, while having the
enlarge_smaller_images
attribute set toTRUE
would lead to unexpected background colours for the resulting images
2.2.6
- minor source code tweaks
- unnecessary files are no more included when downloading from GitHub or via Composer
- documentation is now available in the repository and on GitHub
- the home of the library is now exclusively on GitHub