Blog Sections Open
sGallery v1.5.0: Optimized WebP Gallery Images and Portable SQL Fixes
sGallery v1.5.0 improves generated gallery image delivery with default optimization, WebP-focused output, sharpening controls, and database portability fixes.
sGallery v1.5.0 is a strong release for frontend performance. It adds an image optimization chain for generated gallery images, improves WebP output, and includes compatibility fixes that make gallery rendering more portable across database engines.
Image optimization
- Added default optimization for images processed through
sGallery::file(). - Added
optimize()to enable or disable optimization for a generated image. - Added
sharpen()for optional sharpening after resize, fit, or crop transformations. - Added adaptive WebP quality selection to reduce generated file size while keeping visual quality high.
- Updated documentation for image optimization and sharpening.
Compatibility and rendering fixes
- Generated cache filenames now include optimization and sharpening options, so different 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 avoid MySQL-specific
FIELD()ordering. - Multilingual gallery field loading now uses portable SQL for locale fallback and generated
srcvalues. - Gallery links can now store longer values by increasing the
linkfield length from100to1024. - Gallery rendering no longer fails on unregistered item types when optional partials are missing.
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 cache filenames will change and optimized derivatives may be regenerated on first request.
sSeo v1.3.0: Multisite Sitemap Fixes, sArticles SEO Fields, and noindex,follow
sSeo v1.3.0 adds noindex,follow support, improves multisite sitemap URL generation, integrates SEO fields with sArticles, and fixes canonical URL cleanup.