{"id":263556,"date":"2025-12-14T15:09:58","date_gmt":"2025-12-14T15:09:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nextgen-image-optimizer\/"},"modified":"2025-12-14T15:48:43","modified_gmt":"2025-12-14T15:48:43","slug":"hedef-image-optimizer-webp-avif","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/hedef-image-optimizer-webp-avif\/","author":23407540,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.1","stable_tag":"trunk","tested":"6.9.4","requires":"6.5","requires_php":"8.1","requires_plugins":null,"header_name":"Hedef Image Optimizer \u2014 WebP & AVIF","header_author":"Hedef Hosting","header_description":"Convert JPEG and PNG images to modern WebP and AVIF formats on upload or in bulk, and optionally serve them using <picture> tags.","assets_banners_color":"7f8493","last_updated":"2025-12-14 15:48:43","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/hedefhosting.com.tr\/","header_plugin_uri":"https:\/\/github.com\/vhbcet\/Hedef-Image-Optimizer-for-Wodpress","header_author_uri":"https:\/\/hedefhosting.com.tr\/","rating":0,"author_block_rating":0,"active_installs":40,"downloads":316,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3419424,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3419424,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Settings page \u2013 main configuration, conversion formats, automation, quality and server support.","2":"Bulk optimization screen \u2013 progress bar, global overview donut and per-image log.","3":"Media Library Optimizer column \u2013 per-image status, savings, and quick actions."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[194661,29158,84,247,15376],"plugin_category":[50,54],"plugin_contributors":[252220],"plugin_business_model":[],"class_list":["post-263556","plugin","type-plugin","status-publish","hentry","plugin_tags-avif","plugin_tags-image-optimizer","plugin_tags-media","plugin_tags-performance","plugin_tags-webp","plugin_category-media","plugin_category-security-and-spam-protection","plugin_contributors-hedefhosting","plugin_committers-hedefhosting1"],"banners":{"banner":"https:\/\/ps.w.org\/hedef-image-optimizer-webp-avif\/assets\/banner-772x250.png?rev=3419424","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hedef-image-optimizer-webp-avif\/assets\/icon-128x128.png?rev=3419424","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Hedef Image Optimizer \u2014 WebP &amp; AVIF is a lightweight but powerful image optimization plugin that converts your JPEG and PNG uploads into modern WebP and AVIF formats.<\/p>\n\n<p>All conversions happen locally on your server using GD and\/or Imagick \u2013 there is no external API, no remote storage and no extra monthly bills.<\/p>\n\n<p>The plugin is developed and maintained by <a href=\"https:\/\/hedefhosting.com.tr\/\">Hedef Hosting<\/a> and is provided completely free of charge.<br \/>\nIf you have ideas, bug reports or feature requests, feel free to email us at support@hedefhosting.com.tr.<\/p>\n\n<p>It focuses on three main goals:<\/p>\n\n<ul>\n<li><strong>Better performance<\/strong> \u2013 Serve lighter images without visibly losing quality.<\/li>\n<li><strong>Modern formats<\/strong> \u2013 Use WebP and AVIF when supported by your server and your visitors\u2019 browsers.<\/li>\n<li><strong>Simple control<\/strong> \u2013 Configure everything from a single, polished settings page.<\/li>\n<\/ul>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li>Automatically convert JPEG\/JPG and PNG images to WebP and\/or AVIF on upload.<\/li>\n<li>Bulk optimization tool for existing Media Library images, with:\n\n<ul>\n<li>Progress bar and live log of processed items.<\/li>\n<li>\u201cRun again\u201d support to refresh images after changing quality or resize settings.<\/li>\n<\/ul><\/li>\n<li>Media Library \u201cOptimizer\u201d column:\n\n<ul>\n<li>See per-image status, new filesize, and percentage of space saved.<\/li>\n<li>One-click Re-optimize and Restore original actions (if you keep originals).<\/li>\n<\/ul><\/li>\n<li>Per-image controls in the attachment edit screen:\n\n<ul>\n<li>Optimize\/Re-optimize just that image.<\/li>\n<li>Override the global \u201cOptimize on upload\u201d setting.<\/li>\n<\/ul><\/li>\n<li>Server capabilities checker for GD \/ Imagick WebP and AVIF support.<\/li>\n<li>Optional frontend integration using  tags with WebP\/AVIF  elements:\n\n<ul>\n<li>Modern browsers get AVIF\/WebP.<\/li>\n<li>Older browsers fall back to the original image.<\/li>\n<\/ul><\/li>\n<li>Adjustable compression quality (0\u2013100) with recommended ranges.<\/li>\n<li>Optional resize of next-gen copies above a configurable max width (e.g. 2048px).<\/li>\n<li>Optional EXIF\/IPTC metadata stripping from next-gen copies to further reduce filesize.<\/li>\n<li>Exclusion rules:\n\n<ul>\n<li>Skip specific images based on filename or path (e.g. logo, \/icons\/, avatar-).<\/li>\n<\/ul><\/li>\n<li>Works with:\n\n<ul>\n<li>WordPress Media Library<\/li>\n<li>wp_get_attachment_image()<\/li>\n<li>Featured images and most themes\/page builders.<\/li>\n<\/ul><\/li>\n<li>Localization:\n\n<ul>\n<li>English (en_US)<\/li>\n<li>Turkish (tr_TR) \u2013 full translation of the admin UI and bulk screens.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>Everything is designed to blend nicely into the WordPress admin with a clean, modern UI.<\/p>\n\n<h3>How It Works<\/h3>\n\n<ol>\n<li>When you upload a JPEG or PNG image, the plugin can automatically generate .webp and\/or .avif versions (depending on your settings and server capabilities).<\/li>\n<li>For existing images, use the <strong>Media \u2192 Bulk Optimize (NGIO)<\/strong> screen to scan the Media Library and generate missing next-gen versions in small batches.<\/li>\n<li>On the frontend, you can enable the  integration so that supported browsers will load AVIF \/ WebP, while older browsers still get the original image.<\/li>\n<li>The plugin stores lightweight stats in attachment metadata (ngio) so you can see how much space you\u2019ve saved on each image and across the library.<\/li>\n<\/ol>\n\n<h3>Requirements<\/h3>\n\n<ul>\n<li>PHP 8.1 or higher (for AVIF support through GD or Imagick).<\/li>\n<li>WordPress 6.5 or higher.<\/li>\n<li>One of:\n\n<ul>\n<li>PHP GD extension compiled with WebP\/AVIF support.<\/li>\n<li>PHP Imagick extension with WEBP\/AVIF codecs enabled.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>If your server is missing some of these, the <strong>Server support<\/strong> box on the settings page will clearly show what\u2019s available and what is not.<\/p>\n\n<h3>Usage<\/h3>\n\n<h3>1. Choose formats and automation<\/h3>\n\n<p>On the <strong>Settings \u2192 Image Optimizer<\/strong> page:<\/p>\n\n<ul>\n<li>Enable WebP, AVIF, or both, depending on your server capabilities.<\/li>\n<li>Turn on <strong>Optimize on upload<\/strong> if you want new images to be processed automatically.<\/li>\n<li>Enable <strong>Serve via <\/strong> to send WebP\/AVIF to compatible browsers.<\/li>\n<\/ul>\n\n<p>You can also:<\/p>\n\n<ul>\n<li>Pick a quality level (e.g. 80\u201385 for most sites).<\/li>\n<li>Enable <strong>Resize next-gen copies<\/strong> and set a max width (e.g. 2048px).<\/li>\n<li>Enable <strong>Strip metadata<\/strong> to remove EXIF\/IPTC from generated copies.<\/li>\n<li>Add <strong>Exclusion patterns<\/strong> (one per line) to skip specific images.<\/li>\n<\/ul>\n\n<h3>2. Bulk optimization<\/h3>\n\n<p>Go to <strong>Media \u2192 Bulk Optimize (NGIO)<\/strong>:<\/p>\n\n<ul>\n<li>Click <strong>Optimize all images<\/strong> to start the process.<\/li>\n<li>The progress bar will move as images are processed.<\/li>\n<li>The log will list each optimized attachment.<\/li>\n<li>If you change quality or resize settings later, you can run bulk optimization again \u2013 existing next-gen copies will be refreshed.<\/li>\n<\/ul>\n\n<h3>3. Per-image controls<\/h3>\n\n<p>In <strong>Media \u2192 Library<\/strong> (list view):<\/p>\n\n<ul>\n<li>Use the <strong>Optimizer<\/strong> column to see:\n\n<ul>\n<li>Status (optimized\/not optimized).<\/li>\n<li>New filesize and percentage of space saved.<\/li>\n<li>Links to Re-optimize and Restore original.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>In the <strong>attachment edit screen<\/strong>:<\/p>\n\n<ul>\n<li>Use the <strong>NextGen optimization<\/strong> metabox to:\n\n<ul>\n<li>Optimize\/re-optimize just that image.<\/li>\n<li>Override the global \u201cOptimize on upload\u201d behaviour.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>Hedef Image Optimizer \u2014 WebP &amp; AVIF is free software released under the <strong>GNU General Public License v2.0 or later<\/strong>.<br \/>\nYou can redistribute it and\/or modify it under the terms of the GPL as published by the Free Software Foundation.<br \/>\nSee https:\/\/www.gnu.org\/licenses\/gpl-2.0.html for the full license text.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>hedef-image-optimizer<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory,<br \/>\nor install it via the WordPress.org plugin repository (when available).<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Settings \u2192 Image Optimizer<\/strong> to configure:\n\n<ul>\n<li>Which formats to generate (WebP, AVIF, or both).<\/li>\n<li>Quality level and optional resizing.<\/li>\n<li>Whether to optimize images automatically on upload.<\/li>\n<li>Whether to serve images via  on the frontend.<\/li>\n<li>Optional exclusion patterns.<\/li>\n<\/ul><\/li>\n<li>(Optional) Go to <strong>Media \u2192 Bulk Optimize (NGIO)<\/strong> to convert existing images.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20modify%20my%20original%20image%20files%3F'><h3>Does this plugin modify my original image files?<\/h3><\/dt>\n<dd><p>By default the plugin keeps your original JPEG\/PNG files untouched and creates additional .webp and .avif versions in the same upload folder.<br \/>\nIf you enable \u201cbackup originals\u201d in future versions, restoring will become even easier.<\/p><\/dd>\n<dt id='will%20it%20work%20if%20my%20server%20does%20not%20support%20webp%20or%20avif%3F'><h3>Will it work if my server does not support WebP or AVIF?<\/h3><\/dt>\n<dd><p>If your server cannot generate WebP and\/or AVIF, the plugin will show this in the <strong>Server support<\/strong> section on the settings page.<br \/>\nIn that case:<\/p>\n\n<ul>\n<li>Only the supported formats will be generated, or  <\/li>\n<li>If neither WebP nor AVIF is available, conversion is skipped while your originals remain untouched.<\/li>\n<\/ul><\/dd>\n<dt id='how%20does%20the%20%3Cpicture%3E%20option%20affect%20my%20theme%3F'><h3>How does the  option affect my theme?<\/h3><\/dt>\n<dd><p>When enabled, the plugin wraps images output by <code>wp_get_attachment_image()<\/code> and featured images in a  tag, adding  elements for WebP and AVIF.<br \/>\nThe original  tag remains inside, so themes usually continue to work as expected. If a browser doesn\u2019t support WebP\/AVIF, it simply loads the original image.<\/p><\/dd>\n<dt id='can%20i%20disable%20optimization%20for%20specific%20images%3F'><h3>Can I disable optimization for specific images?<\/h3><\/dt>\n<dd><p>Yes. You can:<\/p>\n\n<ul>\n<li>Use <strong>exclusion patterns<\/strong> (e.g. <code>logo<\/code>, <code>\/icons\/<\/code>, <code>avatar-<\/code>) so matching files are never converted, or<\/li>\n<li>Override the global auto-optimize setting for individual images from their attachment edit screen.<\/li>\n<\/ul><\/dd>\n<dt id='can%20i%20remove%20the%20generated%20files%20if%20i%20uninstall%20the%20plugin%3F'><h3>Can I remove the generated files if I uninstall the plugin?<\/h3><\/dt>\n<dd><p>By default, uninstalling the plugin removes only its settings. The generated image files remain in the uploads directory.<br \/>\nThis is intentional to avoid breaking existing content. You can remove them manually (or via a dedicated cleanup tool) if needed.<\/p><\/dd>\n<dt id='does%20the%20plugin%20send%20any%20data%20to%20external%20services%3F'><h3>Does the plugin send any data to external services?<\/h3><\/dt>\n<dd><p>No. All conversions happen locally on your server. The plugin does not send your images to any external service or CDN.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Prevent fatal errors by guarding the converter class against redeclaration when files are loaded multiple times.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial public release.<\/li>\n<li>Automatic WebP\/AVIF conversion on upload (when supported).<\/li>\n<li>Bulk optimization screen under <strong>Media \u2192 Bulk Optimize (NGIO)<\/strong>.<\/li>\n<li>Server support checker for GD \/ Imagick WebP and AVIF capabilities.<\/li>\n<li>Optional  \/ srcset integration on the frontend.<\/li>\n<li>Quality, resize and metadata stripping controls.<\/li>\n<li>Exclusion patterns for filenames\/paths.<\/li>\n<li>Media Library \u201cOptimizer\u201d column with per-image stats and actions.<\/li>\n<li>Per-attachment metabox for manual optimization.<\/li>\n<li>English and Turkish translations.<\/li>\n<li>Modern, polished admin UI with donut chart and progress bar.<\/li>\n<\/ul>","raw_excerpt":"Converts JPEG and PNG to modern WebP and AVIF formats, with bulk optimization and smart delivery.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/263556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=263556"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hedefhosting1"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=263556"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=263556"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=263556"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=263556"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=263556"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=263556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}