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
srcvalues.
Fixed
- Fixed long gallery link values by increasing the
linkfield length from100to1024. - Fixed gallery rendering errors for unregistered item types by using optional partial includes.
- Fixed WebP output quality handling so quality
100does 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.linkto allow values up to1024characters. - Because optimization is enabled by default for
sGallery::file(), generated image cache filenames will change and optimized derivatives may be regenerated on first request.