Automatically create WebP images

jpg-to-webp
94,90 EUR
plus 19 % VAT
Product no.:
41478
Minimum time until start of work, if booked today:
In this Version:
Price


WebP is an image format that compresses images significantly more than JPG or PNG while maintaining high quality. This makes your shop load faster.

Load time is a Google ranking factor, and Google PageSpeed ​​explicitly recommends serving images in modern formats like WebP.
Almost all modern browsers support WebP, but not quite all of them. Plus, not every merchant wants to go through the trouble of converting all their images manually.

Our module handles this automatically:

When you upload a product or category image in the admin area, a WebP version is created immediately. The same applies to images on content pages as soon as you save the page.
A cron job runs every 10 minutes to process any missing conversions—such as images added to the shop via FTP or import. It only converts images that lack a WebP version or have an outdated one. If you replace an image, the WebP version is automatically updated.
It converts all product, category, manufacturer, and banner images actually used in the shop; leftover images from deleted items are skipped.
Image URLs remain unchanged. A browser capable of displaying WebP automatically receives the WebP version at the same URL. All other browsers receive the original JPG or PNG image you uploaded—as do any images for which a WebP version does not yet exist. Consequently, sitemaps, Google Image Search, and external services continue to function as usual.

Technical requirements:
PHP-GD with WebP support must be installed and enabled on the server. Please check with your hosting provider. Alternatively, we can simply test it: if it doesn't work, we’ll remove the module and won't charge you anything. Your hosting plan must support cron jobs that execute a PHP script directly on the server. External services like cronjob.de trigger the script via the internet; we block this for security reasons, as otherwise anyone could trigger a conversion of your entire image library. If your hosting plan does not include cron jobs, please contact us, and we can secure the script execution with a password.
Images should be properly formatted. A JPG image simply renamed to ".png" might not convert correctly, even if it displays properly in the shop. Analyzing individual images to determine why they failed to convert to WebP is not included in the price.
If an image exists with the same filename but different extensions (e.g., "napf.jpg" and "napf.png"), no WebP version is created for them. Otherwise, both would result in the same file ("napf.webp"), causing one product to display the other's image. The cron job reports such cases; you can simply rename one of the images in the admin panel.
This solution is not "update-safe," as we modify files such as the .htaccess file.

We perform the initial conversion of your entire image library directly on the server during installation, without a time limit. For reference: a shop with around 9,000 images took about 5 minutes to complete, while a shop with around 33,000 images took about half an hour. The exact duration depends on the server and image sizes.
Subsequently, the cron job runs for a maximum of 25 seconds per execution, picking up where it left off. After a full pass, it pauses for one hour. Since only missing or outdated images are converted, a pass involving no new images completes in just a few seconds. This module is not suitable if Cloudflare (or another CDN) caches your images. Such a cache stores only one version per image URL and does not distinguish whether the browser supports WebP.

Previous versions encountered issues with the hosting provider All-Inkl. We verify whether the current version runs flawlessly there before installation.

If you want to check whether an image is already being served as WebP: The URL in the source code and in a new window will still end in .jpg or .png; this is intended behavior. Instead, open your browser's developer tools (F12), go to the "Network" tab, filter by "Images," and reload the page. The "Type" column will then show "webp".

No longer required in the latest versions of Modified 3.

Versions
V1.0.0 - 1.0.4: Various bug fixes
V1.0.5: The cron job first checks if a current WebP version already exists and converts only missing or outdated images. The output now indicates how many images were skipped and why: WebP already up-to-date, image not used (exists on the server but is not utilized anywhere in the shop), or image unreadable.
V1.0.6: The WebP version is served internally using the original URL instead of via a redirect, saving one request per image. Correct browser caching.  WebP generation is disabled for filenames that already have double extensions. The cron job now runs only...