Skip to content

Releases: stefangabos/Zebra_Image

2.8.2

31 Mar 15:00
Compare
Choose a tag to compare
  • added support for BMP; see #27; thanks icret for suggesting
  • fixed some issues with WEBP images

2.8.1

29 Dec 14:47
Compare
Choose a tag to compare
  • 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

17 Aug 21:08
Compare
Choose a tag to compare
  • 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 or ZEBRA_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

29 May 19:38
Compare
Choose a tag to compare
  • fixed an issue where starting with PHP 8.0 GdImage class objects replace GD image resources; see here
  • fixed an issue where starting with PHP 8.1 sending a float value as width/height arguments instead of an interger would trigger a warning; see here

2.6.0

01 Jun 08:31
f23bafa
Compare
Choose a tag to compare
  • 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

16 Feb 15:51
Compare
Choose a tag to compare
  • 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

24 Jan 12:17
Compare
Choose a tag to compare
  • 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

06 Jun 15:12
Compare
Choose a tag to compare
  • 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

21 Aug 15:19
Compare
Choose a tag to compare
  • fixed a bug where the script would generate a warning if auto_handle_exif_orientation was TRUE 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 to TRUE would lead to unexpected background colours for the resulting images

2.2.6

22 May 09:12
Compare
Choose a tag to compare
  • 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