AVIF Image Converter for Magento 2
AVIF Image Converter for Magento 2
AVIF Image Converter for Magento 2 automatically converts your store images from JPG, PNG, and GIF formats into modern AVIF images. AVIF provides smaller file sizes while maintaining excellent image quality, helping your store load faster, save bandwidth, and improve Core Web Vitals.
The extension works with your existing images and automatically serves AVIF images to supported browsers. Browsers that do not support AVIF will continue to receive the original image format, ensuring full compatibility.
Key Features
Automatic Image Conversion
- Convert JPG, PNG, and GIF images to AVIF automatically.
- Reduce image file sizes without sacrificing quality.
- Improve page loading speed and SEO performance.
Three Conversion Modes
- Page Load
- Cron
- Hybrid
Page Load Mode
Images are converted automatically when they are first requested by visitors.
Cron Mode
Images are processed automatically in the background using Magento cron jobs, reducing the load during customer visits.
Hybrid Mode
Combines page-load conversion and background processing for the best balance of speed and performance.
Multiple Encoding Methods
- Imagick
- GD with AVIF support
- CLI Tools (avifenc/ffmpeg)
Smart Browser Detection
The extension automatically detects whether a visitor's browser supports AVIF. Supported browsers receive AVIF images, while unsupported browsers receive the original JPG, PNG, or GIF images.
HTML5 Picture Tag Support
Uses the HTML5 <picture> element to deliver the most suitable
image format automatically.
Queue-Based Image Processing
- Database-driven image conversion queue.
- Automatic background image processing.
- Efficient processing for large image libraries.
Admin Dashboard
- View live conversion statistics.
- Track image conversion progress.
- Manage the conversion queue.
- Configure image quality.
Image Quality & Metadata
- Adjust image quality from 1 to 100.
- Preserve EXIF metadata.
- Preserve ICC color profiles.
- Preserve XMP metadata.
API Support
- REST API support for AVIF images.
- GraphQL support for AVIF images.
Theme Compatibility
- Luma
- Blank
- Hyvä
- Breeze
- Custom Magento themes
Conversion Modes
Page Load
Images are converted automatically when they are requested for the first time.
Cron
Images are converted in the background using scheduled cron jobs.
Hybrid
Uses both page-load conversion and cron processing to improve performance and reduce server load.
Encoding Methods
The extension supports multiple image processing methods, making it compatible with different hosting environments.
- Imagick
- GD with AVIF support
- CLI Tools (avifenc or ffmpeg)
Browser Compatibility
The extension automatically checks browser compatibility. AVIF-supported browsers receive optimized AVIF images, while all other browsers continue to display the original image format without any additional configuration.
Admin Dashboard
The built-in dashboard helps administrators monitor and manage image optimization.
- View live conversion statistics.
- Monitor conversion progress.
- Manage image processing queues.
- Adjust image quality settings.
CLI Commands
The extension includes built-in CLI commands for easy image management.
- Generate AVIF images.
- Regenerate existing AVIF images.
- View conversion status.
Compatibility
- Compatible with Magento 2.4.0 and later.
- Tested on Magento 2.4.0 to Magento 2.4.9.
- Requires PHP 8.1 or higher.
- Tested with PHP 8.1, 8.2, 8.3, and 8.4.
- Supports Luma, Blank, Hyvä, Breeze, and custom Magento themes.
Server Requirements
PHP Version
- PHP 8.1 or higher
Supported Image Processing Methods
Your server should have at least one of the following available:
- Imagick
- GD with AVIF support
- CLI tools (avifenc or ffmpeg)
Support
If you need help with installation, configuration, or using the extension, please contact the Purpletree Software support team. We are happy to assist you.