Title: Hedef Image Optimizer — WebP &amp; AVIF
Author: hedefhosting1
Published: <strong>14 Tháng 12, 2025</strong>
Last modified: 14 Tháng 12, 2025

---

Tìm kiếm plugin

![](https://ps.w.org/hedef-image-optimizer-webp-avif/assets/banner-772x250.png?rev
=3419424)

![](https://ps.w.org/hedef-image-optimizer-webp-avif/assets/icon-128x128.png?rev
=3419424)

# Hedef Image Optimizer — WebP & AVIF

 Bởi [hedefhosting1](https://profiles.wordpress.org/hedefhosting1/)

[Tải về](https://downloads.wordpress.org/plugin/hedef-image-optimizer-webp-avif.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/hedef-image-optimizer-webp-avif/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/hedef-image-optimizer-webp-avif/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/hedef-image-optimizer-webp-avif/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/hedef-image-optimizer-webp-avif/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/hedef-image-optimizer-webp-avif/)

## Mô tả

Hedef Image Optimizer — WebP & AVIF is a lightweight but powerful image optimization
plugin that converts your JPEG and PNG uploads into modern WebP and AVIF formats.

All conversions happen locally on your server using GD and/or Imagick – there is
no external API, no remote storage and no extra monthly bills.

The plugin is developed and maintained by [Hedef Hosting](https://hedefhosting.com.tr/)
and is provided completely free of charge.
 If you have ideas, bug reports or feature
requests, feel free to email us at support@hedefhosting.com.tr.

It focuses on three main goals:

 * **Better performance** – Serve lighter images without visibly losing quality.
 * **Modern formats** – Use WebP and AVIF when supported by your server and your
   visitors’ browsers.
 * **Simple control** – Configure everything from a single, polished settings page.

### Key Features

 * Automatically convert JPEG/JPG and PNG images to WebP and/or AVIF on upload.
 * Bulk optimization tool for existing Media Library images, with:
    - Progress bar and live log of processed items.
    - “Run again” support to refresh images after changing quality or resize settings.
 * Media Library “Optimizer” column:
    - See per-image status, new filesize, and percentage of space saved.
    - One-click Re-optimize and Restore original actions (if you keep originals).
 * Per-image controls in the attachment edit screen:
    - Optimize/Re-optimize just that image.
    - Override the global “Optimize on upload” setting.
 * Server capabilities checker for GD / Imagick WebP and AVIF support.
 * Optional frontend integration using tags with WebP/AVIF elements:
    - Modern browsers get AVIF/WebP.
    - Older browsers fall back to the original image.
 * Adjustable compression quality (0–100) with recommended ranges.
 * Optional resize of next-gen copies above a configurable max width (e.g. 2048px).
 * Optional EXIF/IPTC metadata stripping from next-gen copies to further reduce 
   filesize.
 * Exclusion rules:
    - Skip specific images based on filename or path (e.g. logo, /icons/, avatar-).
 * Works with:
    - WordPress Media Library
    - wp_get_attachment_image()
    - Featured images and most themes/page builders.
 * Localization:
    - English (en_US)
    - Turkish (tr_TR) – full translation of the admin UI and bulk screens.

Everything is designed to blend nicely into the WordPress admin with a clean, modern
UI.

### How It Works

 1. 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).
 2. For existing images, use the **Media  Bulk Optimize (NGIO)** screen to scan the
    Media Library and generate missing next-gen versions in small batches.
 3. On the frontend, you can enable the integration so that supported browsers will
    load AVIF / WebP, while older browsers still get the original image.
 4. The plugin stores lightweight stats in attachment metadata (ngio) so you can see
    how much space you’ve saved on each image and across the library.

### Requirements

 * PHP 8.1 or higher (for AVIF support through GD or Imagick).
 * WordPress 6.5 or higher.
 * One of:
    - PHP GD extension compiled with WebP/AVIF support.
    - PHP Imagick extension with WEBP/AVIF codecs enabled.

If your server is missing some of these, the **Server support** box on the settings
page will clearly show what’s available and what is not.

### Usage

### 1. Choose formats and automation

On the **Settings  Image Optimizer** page:

 * Enable WebP, AVIF, or both, depending on your server capabilities.
 * Turn on **Optimize on upload** if you want new images to be processed automatically.
 * Enable **Serve via ** to send WebP/AVIF to compatible browsers.

You can also:

 * Pick a quality level (e.g. 80–85 for most sites).
 * Enable **Resize next-gen copies** and set a max width (e.g. 2048px).
 * Enable **Strip metadata** to remove EXIF/IPTC from generated copies.
 * Add **Exclusion patterns** (one per line) to skip specific images.

### 2. Bulk optimization

Go to **Media  Bulk Optimize (NGIO)**:

 * Click **Optimize all images** to start the process.
 * The progress bar will move as images are processed.
 * The log will list each optimized attachment.
 * If you change quality or resize settings later, you can run bulk optimization
   again – existing next-gen copies will be refreshed.

### 3. Per-image controls

In **Media  Library** (list view):

 * Use the **Optimizer** column to see:
    - Status (optimized/not optimized).
    - New filesize and percentage of space saved.
    - Links to Re-optimize and Restore original.

In the **attachment edit screen**:

 * Use the **NextGen optimization** metabox to:
    - Optimize/re-optimize just that image.
    - Override the global “Optimize on upload” behaviour.

### License

Hedef Image Optimizer — WebP & AVIF is free software released under the **GNU General
Public License v2.0 or later**.
 You can redistribute it and/or modify it under 
the terms of the GPL as published by the Free Software Foundation. See https://www.
gnu.org/licenses/gpl-2.0.html for the full license text.

## Cài đặt

 1. Upload the `hedef-image-optimizer` folder to the `/wp-content/plugins/` directory,
    
    or install it via the WordPress.org plugin repository (when available).
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Settings  Image Optimizer** to configure:
 4.  * Which formats to generate (WebP, AVIF, or both).
     * Quality level and optional resizing.
     * Whether to optimize images automatically on upload.
     * Whether to serve images via on the frontend.
     * Optional exclusion patterns.
 5. (Optional) Go to **Media  Bulk Optimize (NGIO)** to convert existing images.

## Hỏi đáp

### Does this plugin modify my original image files?

By default the plugin keeps your original JPEG/PNG files untouched and creates additional.
webp and .avif versions in the same upload folder.
 If you enable “backup originals”
in future versions, restoring will become even easier.

### Will it work if my server does not support WebP or AVIF?

If your server cannot generate WebP and/or AVIF, the plugin will show this in the**
Server support** section on the settings page.
 In that case:

 * Only the supported formats will be generated, or
 * If neither WebP nor AVIF is available, conversion is skipped while your originals
   remain untouched.

### How does the option affect my theme?

When enabled, the plugin wraps images output by `wp_get_attachment_image()` and 
featured images in a tag, adding elements for WebP and AVIF.
 The original tag remains
inside, so themes usually continue to work as expected. If a browser doesn’t support
WebP/AVIF, it simply loads the original image.

### Can I disable optimization for specific images?

Yes. You can:

 * Use **exclusion patterns** (e.g. `logo`, `/icons/`, `avatar-`) so matching files
   are never converted, or
 * Override the global auto-optimize setting for individual images from their attachment
   edit screen.

### Can I remove the generated files if I uninstall the plugin?

By default, uninstalling the plugin removes only its settings. The generated image
files remain in the uploads directory.
 This is intentional to avoid breaking existing
content. You can remove them manually (or via a dedicated cleanup tool) if needed.

### Does the plugin send any data to external services?

No. All conversions happen locally on your server. The plugin does not send your
images to any external service or CDN.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Hedef Image Optimizer — WebP & AVIF” là mã nguồn mở. Những người sau đã đóng góp
vào plugin này.

Những người đóng góp

 *   [ hedefhosting1 ](https://profiles.wordpress.org/hedefhosting1/)
 *   [ HEDEF Hosting ](https://profiles.wordpress.org/hedefhosting/)

[Dịch “Hedef Image Optimizer — WebP & AVIF” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/hedef-image-optimizer-webp-avif)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/hedef-image-optimizer-webp-avif/),
check out [SVN repository](https://plugins.svn.wordpress.org/hedef-image-optimizer-webp-avif/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/hedef-image-optimizer-webp-avif/)
qua [RSS](https://plugins.trac.wordpress.org/log/hedef-image-optimizer-webp-avif/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 0.1.1

 * Prevent fatal errors by guarding the converter class against redeclaration when
   files are loaded multiple times.

#### 0.1.0

 * Initial public release.
 * Automatic WebP/AVIF conversion on upload (when supported).
 * Bulk optimization screen under **Media  Bulk Optimize (NGIO)**.
 * Server support checker for GD / Imagick WebP and AVIF capabilities.
 * Optional / srcset integration on the frontend.
 * Quality, resize and metadata stripping controls.
 * Exclusion patterns for filenames/paths.
 * Media Library “Optimizer” column with per-image stats and actions.
 * Per-attachment metabox for manual optimization.
 * English and Turkish translations.
 * Modern, polished admin UI with donut chart and progress bar.

## Meta

 *  Phiên bản **0.1.1**
 *  Cập nhật lần cuối **10 tháng trước**
 *  Số lượt cài đặt **60+**
 *  Phiên bản WordPress ** 6.5 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.10**
 *  Phiên bản PHP ** 8.1 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/hedef-image-optimizer-webp-avif/)
 * Thẻ
 * [AVIF](https://vi.wordpress.org/plugins/tags/avif/)[image optimizer](https://vi.wordpress.org/plugins/tags/image-optimizer/)
   [media](https://vi.wordpress.org/plugins/tags/media/)[performance](https://vi.wordpress.org/plugins/tags/performance/)
   [webp](https://vi.wordpress.org/plugins/tags/webp/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/hedef-image-optimizer-webp-avif/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/hedef-image-optimizer-webp-avif/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/hedef-image-optimizer-webp-avif/reviews/)

## Những người đóng góp

 *   [ hedefhosting1 ](https://profiles.wordpress.org/hedefhosting1/)
 *   [ HEDEF Hosting ](https://profiles.wordpress.org/hedefhosting/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/hedef-image-optimizer-webp-avif/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://hedefhosting.com.tr/)