WP Manifestindependent plugin directory
manifest / media / scy-wp-avif-converter

Scy / AVIF Converter

A lightweight WordPress plugin that automatically converts images (JPEG, PNG) to AVIF format and serves them dynamically for improved performance and smaller file sizes. Includes cron-based batch conversion, manual regeneration, and customizable settings for conversion methods and quality.

by scysys · github.com/scysys/scy-wp-avif-converter · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/scysys/scy-wp-avif-converter/archive/refs/heads/main.zip

WP AVIF Converter

A WordPress plugin that automatically converts images to the modern AVIF format and serves them dynamically, ensuring faster page load times and improved compression efficiency.

Features

  • Automatically converts uploaded images (.jpg, .jpeg, .png) to AVIF format.
  • Dynamically serves AVIF images on the website.
  • Displays the AVIF conversion status in the media library:
    • Exists – AVIF version already generated.
    • Missing (Generate now) – AVIF version missing, with an option to generate it manually.
    • Already AVIF – If the uploaded image is already in AVIF format.
    • Not supported – For unsupported file types (e.g., .svg, .mp4).
  • Scheduled conversion via WordPress cron job (default: hourly).
  • Manual regeneration of all images via the admin interface.
  • Settings page for configuring conversion method, quality, and cron frequency.
  • Supports GD and Imagick for AVIF generation.

Installation

  1. Download the plugin and upload it to your WordPress installation via the Plugins page.
  2. Activate the plugin through the Plugins page in WordPress.
  3. Configure the plugin settings via the Settings > AVIF Converter page.

Usage

  • Once activated, the plugin will automatically convert newly uploaded images to AVIF format.
  • The plugin checks for new images on an hourly basis via a WordPress cron job.
  • You can manually regenerate all existing images using the Regenerate All Images button in the plugin’s settings.

Settings

The plugin provides the following settings:

  • Conversion Method – Choose between GD or Imagick for AVIF conversion.
  • AVIF Quality – Set the quality level for the generated AVIF images (default: 82).
  • Files Per Cron Run – Limit the number of files processed per cron run.
  • Cron Frequency – Set how often the cron job runs (options: every 5 minutes, every 15 minutes, hourly, daily, etc.).

System Requirements

  • WordPress: 5.0 or higher
  • PHP: 8.1 or higher (required for native AVIF in GD)
  • Libraries: GD or Imagick compiled with AVIF support

Contribution

Feel free to open issues or submit pull requests for improvements and bug fixes.

License

This plugin is licensed under the MIT License.