Zebra Image Versions Save

A single-file lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

2.8.2

1 year ago
  • added support for BMP; see #27; thanks icret for suggesting
  • fixed some issues with WEBP images

2.8.1

1 year ago
  • 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

1 year ago
  • 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

1 year ago
  • 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

3 years ago
  • 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

4 years ago
  • 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

4 years ago
  • 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

4 years ago
  • 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

6 years ago
  • 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

6 years ago
  • 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