This addon adds ability to use WebP images in CS-Cart. This format developed by Google Inc. in 2010. It uses the newest algorithms of compression, so:
- Quality is not lost
- Image size is much less
- Increases page load speed
- Increases Google Speed rating, because usage of WebP images - one of main requirements of this service
Abilities:
- Convert all images to WebP by one click
- Auto convert images to WebP on upload
JPG and PNG images will be converted to WebP on upload automatically.
All images on this store were converte to WebP. You can check image format in browser console.
Go to Settings - Thumbnails page and make sure that the Thumbnail format parameter is set to same as source.
If you use the GD imagine library you have to perform the following changes in app/lib/vendor/imagine/imagine/src/Gd/Imagine.php file.
$mime = mime_content_type($path);
$resource = $mime == 'image/webp' ? @imagecreatefromwebp($path) : @imagecreatefromstring($data);
To convert all images to Webp go to Modules - Convert all images to WEBP page.
If icons are not appear after the convertation open the app/functions/fn.images.php file and comment th efollowing line
CAUTION!!! New version of this module doesn't delete old images, but you have to backup all store files and database before performing this action. Also check write permissions for the images folder. Developer is not responsible for any possible data loss.