No image available

Image Optimizer

Resizes, compresses, and converts PrestaShop images on the fly via a Smarty widget, with responsive image support and configurable quality, dimensions, and output format.

Developed by Pixel Open

Get This Module Free on GitHub
PS 1.7 – 9.x License: MIT Status: Active Health: Excellent

Info updated 1 month ago

Sources
Stars: 8 Last commit: Apr 11, 2025
Type
Module

Info checked: Mar 2, 2026

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.

  • Reference
    pixel_image_optimizer

  • License
    MIT
  • PS Compatibility
    1.7.x
    8.x
    9.x
  • Status
    Active

Comments (0)

No customer reviews for the moment.
Loading...