The Image Optimizer module provides on-the-fly image resizing, compression, and format conversion for PrestaShop stores. It is implemented as a Smarty widget that can be embedded in theme templates, giving developers fine-grained control over how images are served to visitors without modifying the original files.
- On-the-fly resize and compression: Images can be resized to a specified maximum width or height and compressed with a configurable quality level (0–100), with support for JPEG and WebP quality settings.
- Format conversion: Images can be converted to JPG, PNG, GIF, or WebP format at render time using the
ext option. - Responsive image support: Multiple breakpoint widths can be specified to generate
<picture> elements with <source> alternatives, serving appropriately sized images based on viewport width. - Flexible image sources: Works with both PrestaShop image IDs (
id_image) and arbitrary image paths (image_path), making it usable for product images as well as CMS images. - Custom template support: Developers can provide a custom Smarty template file to fully control the rendered HTML output of the optimized image.
This module is best suited for developers and store administrators who want to reduce image file sizes and implement responsive images without relying on external image CDN services. It requires access to theme template files to add the widget calls and is particularly useful when building or customizing PrestaShop themes.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent