PrestaShop module 1.6 to 9.x · PHP 5.6+ · WebP and AVIF
Faster pages, without touching your photos
MedImgCompress converts every image in your shop to WebP, and to AVIF when your server allows it, serves the lightest version to each browser and keeps your originals intact.
- -65%
- up to, measured on product image weight in WebP
- 0
- originals overwritten by the conversion
- 6
- languages included, PrestaShop 1.6 to 9.x
01 - How it works
How does it work?
From installation to lighter pages, in three steps
Tune quality on your real images
Choose WebP, AVIF or both and set the quality of each format. The before / after comparison shows file size, encoding time and rendering on images from your own shop.
Let the module measure your server
The server measurement converts a sample, recommends the load and batch size, saves them in one click and estimates the duration. Bulk conversion then runs in small steps, from the back office or through a cron task.
Serve the right format to each browser
Through .htaccess negotiation (same address, the server picks the format) or HTML rewriting into <picture>. A browser that does not support WebP receives the original image.
02 - Features
Everything you need for lighter images
Conversion, thumbnails and monitoring, across the whole shop
- WebP, AVIF or both
- GD and Imagick engines, chosen automatically: Imagick first, falling back to GD when Imagick fails on an image.
- Before / after comparison
- Quality set per format and tested on real images from your shop: file size, encoding time, comparison slider.
- The whole shop covered
- Products, categories, brands, suppliers, stores, CMS pages, logo, theme, modules and custom directories.
- Converted on upload
- Every new product image is converted automatically as soon as you upload it.
- Lossless WebP for drawings
- PNG logos and icons are encoded as lossless WebP when the resulting file is lighter.
- Bulk conversion
- In small steps from the back office, with progress bar, time remaining, pause and resume, or through a token-secured cron task.
- Load matched to the server
- Gentle mode for shared hosting, Standard for a dedicated server or a VPS.
- Sharper thumbnails
- Small thumbnails blurred by PrestaShop are redone at the same dimensions, watermark kept: Lanczos filter and light sharpening with Imagick, extra sharpening with GD.
- Statistics per directory
- Actual savings per format, progress and disk space used, directory by directory.
- PrestaShop 8.1+ respected
- When PrestaShop already generates WebP or AVIF for its thumbnails, the module detects it, leaves those files to PrestaShop and covers the rest.
- Orphan files cleaned up
- Converted files of a deleted image go with it; existing orphans are detected and cleaned up.
- Multistore
- Settings shared by all shops.
03 - Serving
Converting is not enough: the browser must receive the right file
Two serving strategies and a diagnosis that checks the real result
Apache, LiteSpeed
.htaccess negotiation
Images keep their address: the server picks the format for each browser. Nothing changes in the theme.
Any server, CDN included
Rewriting into <picture>
The page offers WebP and AVIF in a <picture> element, with the original image as fallback.
Image serving diagnosis
The result, verified
It spots .htaccess files that block WebP or AVIF (403 error), fixes them with a backup, checks with a real HTTP request, detects Nginx and CDNs that ignore Vary: Accept, and provides the Nginx rules.
04 - Originals
Your originals stay intact
Conversion adds files, it replaces nothing
WebP and AVIF conversion
- Converted files written next to the originals, never in their place
- A browser that does not support WebP receives the original image
- Converted files of a deleted image go with it
- No third-party service: everything happens on your shop’s server
Lighter originals, optional
- Original photos resized to the chosen maximum side and recompressed
- Replaced only when the saving exceeds 5%
- Intact copy in a backup before any replacement
- Prior analysis with estimated saving on a sample
- List of replaced files, restore one by one or all at once
05 - Reliability
A module that adapts and explains itself
Your server sets the pace, and every failure has a readable cause
Measure this server
The right setting in one click
A sample converted and timed, cores and load read: the recommended load and batch size are saved in one click, with an estimated duration.
Journal
Every failure explained
Each image that could not be converted, with its cause, grouped by cause and downloadable. The “Analyse” button retries the image with each engine and explains what to fix.
Circuit breaker
AVIF paused when it fails
If the server’s AVIF encoder fails every time, AVIF is paused automatically and conversion runs at WebP speed. Switch to WebP only in one click.
06 - Comparison
MedImgCompress or PrestaShop alone?
What the module adds, point by point
| PrestaShop alone | MedImgCompress | |
|---|---|---|
| WebP and AVIF on PrestaShop 1.6 to 8.0 | No | Yes |
| WebP and AVIF for the logo, theme, modules and CMS pages | No | Yes |
| Custom directories | No | Yes |
| Before / after comparison on your images | No | Yes |
| Bulk conversion with pause, resume and cron task | No | Yes |
| Server measurement and matched load | No | Yes |
| Serving diagnosis (403, Nginx, CDN) | No | Yes |
| Sharper thumbnails, same dimensions | No | Yes, Lanczos filter |
| Lighter originals with backup and restore | No | Yes |
| Failure journal with per-engine analysis | No | Yes |
| WebP and AVIF thumbnails on PrestaShop 8.1+ | Yes | Left to PrestaShop, the rest covered |
PrestaShop 8.1 and later generates WebP or AVIF for the thumbnails of its records (products, categories, brands...). MedImgCompress detects it, leaves those files to PrestaShop and converts everything else.
On PrestaShop 1.6 to 8.0, MedImgCompress handles everything: conversion, serving and diagnosis, with no third-party service.
07 - Demo
The module in action
Bulk conversion of the whole shop, then the before / after comparison, server measurement, HTTP check of the serving, analysis of the originals and failure journal, in the back office. You can also try the online demo.
08 - FAQ
Frequently asked questions
What merchants ask us before installing
- Are my original images modified?
- Not by the conversion: WebP and AVIF files are added next to them. Lighter originals is a separate option, with backup and restore.
- What if a browser does not support WebP?
- It receives the original image.
- My server runs Nginx or sits behind Cloudflare?
- The diagnosis detects it and points to the right strategy: Nginx rules provided, or HTML rewriting.
- I am on shared hosting?
- Gentle mode works in short requests with pauses; the server measurement recommends the right setting.
- Do I need Imagick?
- No, GD is enough for WebP. Imagick improves thumbnails and AVIF when it is properly installed.
09 - Technical
Technical specifications
Built to adapt to your server
- PrestaShop 1.6 to 9.x
- Detects formats already generated by PrestaShop 8.1+
- PHP 5.6 and later
- Broad server compatibility
- Formats
- WebP, AVIF or both; lossless WebP for drawings
- Engines
- GD and Imagick, automatic choice with GD fallback
- Servers
- Apache and LiteSpeed (.htaccess), Nginx (rules provided), any server and CDN (rewriting into
<picture>) - Bulk conversion
- Back office in small steps, or cron task through a token-secured URL
- Server load
- Gentle (shared hosting) or Standard (dedicated server, VPS)
- Multistore
- Settings shared by all shops
- Languages
- French, English, German, Spanish, Italian, Polish
- No third-party service
- No external resource or API: everything happens on your shop’s server
Lighter images, untouched photos
Install, measure your server, start the conversion: your pages get lighter and your originals stay intact.