Skip to content

sGallery v1.5.0

Latest

Choose a tag to compare

@Seiger Seiger released this 30 Jun 11:17

This release adds the image optimization chain for generated gallery images, improves WebP output for PageSpeed-friendly delivery, and includes several compatibility fixes for database portability and gallery rendering.

Added

  • Added default optimization for images processed through sGallery::file().
  • Added optimize() to enable or disable optimization per generated image.
  • Added sharpen() for optional sharpening after resize, fit, or crop transformations.
  • Added adaptive WebP quality selection for optimized images to reduce generated file size while keeping visual quality high.
  • Added documentation for image optimization and sharpening.

Changed

  • Generated cache filenames now include optimization and sharpening options, so different image-processing settings create separate cached derivatives.
  • Automatic image format preference now uses WebP as the primary modern output format.
  • Gallery sorting SQL was updated to work across different database engines instead of relying on MySQL-specific FIELD() ordering.
  • Multilingual gallery field loading now uses portable SQL for locale fallback and generated src values.

Fixed

  • Fixed long gallery link values by increasing the link field length from 100 to 1024.
  • Fixed gallery rendering errors for unregistered item types by using optional partial includes.
  • Fixed WebP output quality handling so quality 100 does not create unnecessarily heavy files by default.
  • Fixed missing final newlines in touched templates/controllers.

Upgrade Notes

  • Existing installations may need a database update for s_gallery_fields.link to allow values up to 1024 characters.
  • Because optimization is enabled by default for sGallery::file(), generated image cache filenames will change and optimized derivatives may be regenerated on first request.