Netgold AVIF Converter

Description

Netgold AVIF Converter by NETGOLD is a lightweight, strictly non-invasive tool designed to skyrocket your WordPress website performance by serving next-generation AVIF images.

AVIF provides superior compression compared to WebP and traditional JPEG/PNG formats, significantly improving your Google PageSpeed Insights score and Core Web Vitals without losing visual quality.

πŸš€ Key Features

  • Strictly Non-Invasive: We never alter your database or HTML structure. The plugin dynamically serves AVIF files to compatible browsers using intelligent .htaccess rewrite rules. The original file URLs (like .jpg or .png) remain untouched in your source code.
  • Smart Bulk Conversion Tool: Convert your entire media library with a single click. Our CPU-safe, batch-processing algorithm ensures your server never times out or crashes, even on shared hosting environments.
  • Live Log Console: Real-time reporting of the conversion process! Watch exactly which files are being processed and see the precise savings for every single image.
  • Granular Exclusions: Need to keep a specific image in its original format? Use our native Media Library picker to exclude individual files from optimization with one click.
  • Anti-RAM Shield: Built-in protection that automatically detects and skips extremely large images (over 16Mpx) to prevent server memory exhaustion and crashes.
  • Intelligent Resume: Process got interrupted? No problem. The Bulk Converter automatically remembers where it left off and resumes seamlessly.
  • Broad Directory Support: Not just for the Media Library! You can choose to convert images located in /uploads, /themes, and /plugins directories.
  • Visual Dashboard: Track your optimization progress with a clean, modern UI featuring a real-time progress circle and a live “Total Disk Space Saved” calculator.
  • Safe Revert: Deactivating the plugin instantly removes the .htaccess rules, immediately reverting your site to serving the original images. No lock-in!

πŸ’‘ Why AVIF?

AVIF is currently the most efficient image format on the web, supported by all modern browsers (Chrome, Safari, Firefox, Edge). It offers file sizes up to 50% smaller than WebP and 70% smaller than standard JPEGs.

πŸ‡΅πŸ‡± Polish Language Support

The plugin includes built-in .po/.mo files for the Polish language. If your WordPress is set to Polish, the plugin dashboard will automatically translate itself – no extra downloads required!

Screenshots

  • Dashboard & Bulk Conversion Tool – keep track of saved space and convert all images with one click.
  • Proof of delivery: Browser’s Network tab confirms original JPG files are seamlessly served as AVIF on the frontend.

Installation

  1. Upload the netgold-avif-converter folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Navigate to Netgold AVIF Converter in your WordPress admin menu.
  4. Check the Server Diagnostics panel to ensure your server’s GD library supports AVIF.
  5. Select your desired image quality (75 is recommended) and the directories you want to optimize.
  6. Click Save Changes.
  7. Click Start Bulk Conversion to optimize your existing media library. Any newly uploaded images will be converted to AVIF automatically on-the-fly!

FAQ

Does this plugin delete my original JPG/PNG files?

Absolutely not. The plugin generates a separate AVIF copy of your image in a dedicated hidden folder. It then uses server-level routing (.htaccess) to serve the AVIF file whenever a browser requests the original JPG/PNG. Your original files are 100% safe.

Why do images still show as .jpg in my browser’s dev tools?

This means the plugin is working perfectly! Because the rewrite happens silently on the server level, the browser still requests the .jpg URL, but the server delivers the .avif payload. To verify, check the file size (it will be much smaller) or right-click the image on your site and select “Save image as…” β€” the browser will automatically suggest saving it as an .avif file.

Will my site break for older browsers that don’t support AVIF?

No. The rewrite rules specifically check the Accept header of the visitor’s browser. If a user visits with an outdated browser, they will seamlessly receive the original JPG or PNG file.

What happens if the Bulk Conversion stops or times out?

Just click “Start Bulk Conversion” again. Our smart queue system detects previously processed files and will automatically resume exactly where it left off without duplicating any work.

What are the server requirements?

Your server must run PHP 8.3+ and have the GD extension compiled with AVIF support. The plugin includes a built-in diagnostic tool on the settings page to check this for you.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Netgold AVIF Converter” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.9

  • Fix: Resolved an issue where some server configurations (e.g., LiteSpeed) ignored the file size check in .htaccess and served blank 0-byte AVIF files for skipped images.
  • Improvement: Implemented a new .nosave flag system. Excluded or unoptimized images now completely bypass the .htaccess rewrite rules, guaranteeing the original image is always safely served.
  • Improvement: Updated the uninstall.php routine to ensure a complete and clean removal of newly added plugin settings and .nosave marker files from the server.

1.0.7

  • Feature: Added Excluded Images option with a native Media Library picker for granular control.
  • Feature: Introduced Live Log Console, providing real-time, file-by-file reporting of conversion status and exact savings.
  • Security: Implemented Anti-RAM Shield to automatically skip images larger than 16 Megapixels, preventing server memory exhaustion.
  • UI: Redesigned Server Diagnostics into a clean, horizontal footer layout for a better dashboard experience.
  • Improvement: Enhanced smart skipping logic β€” the plugin now detects if an AVIF version would be larger than the original and skips it to maintain optimal page weight.
  • Translation: Full internationalization support with updated .pot and .po files for English and Polish.
  • Fix: Resolved JavaScript conflicts and initialized the Media Library frame using a Singleton pattern for better compatibility with other plugins.

1.0.6

  • Tweak: Added a version indicator to the bulk conversion dashboard UI for easier identification.

1.0.5

  • Fix: Addressed a rare edge case where corrupted images or unsupported color profiles (e.g., CMYK) caused the progress bar to stall. The plugin now gracefully detects unprocessable files and skips them, ensuring the bulk conversion always completes successfully.

1.0.4

  • Fix: Resolved an issue where server timeouts on heavy images resulted in broken, 0-byte files on the frontend. Implemented atomic file saving for bulletproof reliability.
  • Fix: Updated .htaccess rules to strictly serve AVIF files only if they are fully generated and valid (file size > 0).
  • Improvement: Enhanced the smart file size check. If a generated AVIF is heavier than the original, the plugin skips it and registers it as processed, preventing infinite conversion loops and ensuring the progress bar reaches 100%.
  • Feature: Added complete uninstall routine (uninstall.php). Deleting the plugin now fully cleans up the database and automatically removes all generated AVIF files from the server.

1.0.3

  • Feature: Added a Batch Size control slider (1-15) in settings. You can now adjust the processing speed to match your server capabilities and prevent timeouts on shared hosting.
  • Fix: Resolved a critical activation error on highly restrictive hosting environments by optimizing how WordPress core files are loaded.
  • Fix: Added a safety check for servers missing the GD image library to prevent fatal errors and gracefully disable the conversion tool.
  • Translation: Updated the native Polish (pl_PL) translation files with the latest interface strings.

1.0.2

  • Updated Plugin URI to the dedicated documentation page.
  • Added information about native Polish language support.

1.0.1

  • Fixed missing SVG icon in the WordPress admin menu.

1.0.0

  • Initial stable release.
  • Features real-time on-upload AVIF generation.
  • Bulk Conversion tool with batch-processing (CPU-safe) and smart resume capability.
  • Dynamic .htaccess routing with support for subdirectories and virtual paths.
  • Modern UI with disk space savings calculation.