Title: DVMAGIC Local Image Conversion for AVIF and WebP
Author: Dmitri Shevelkin
Published: <strong>2026 年 8 月 31 日</strong>
Last modified: 2026 年 8 月 31 日

---

搜索插件

![](https://ps.w.org/dvmagic-local-image-conversion/assets/banner-772x250.png?rev
=3674718)

![](https://ps.w.org/dvmagic-local-image-conversion/assets/icon-256x256.png?rev=
3674718)

# DVMAGIC Local Image Conversion for AVIF and WebP

 作者：[Dmitri Shevelkin](https://profiles.wordpress.org/dvmagic/)

[下载](https://downloads.wordpress.org/plugin/dvmagic-local-image-conversion.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/dvmagic-local-image-conversion/#description)
 * [评价](https://cn.wordpress.org/plugins/dvmagic-local-image-conversion/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dvmagic-local-image-conversion/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dvmagic-local-image-conversion/#developers)

 [支持](https://wordpress.org/support/plugin/dvmagic-local-image-conversion/)

## 描述

**DVMAGIC Local Image Conversion for AVIF and WebP** converts JPEG, PNG and GIF 
uploads to modern formats on your own server — and can batch-convert your existing
Media Library.

Built by [Auslander Studio](https://seohero.uk/free-plugins/) for production WordPress
sites we operate ourselves. Unlike SaaS optimizers, everything runs locally with
no usage caps — full feature set, free.

#### What makes this plugin different

 * **No external API** — images never leave your server
 * **No subscription or quota** — batch the whole Media Library when you need to
 * **AVIF-first with WebP fallback** when the host cannot encode AVIF
 * **Optional keep originals** for rollback without a second plugin
 * **Server capability panel** so you know what the host can encode before you batch
 * **URL rewrite** in post content and meta after conversion

#### Features

 * Convert on upload (optional)
 * Batch convert legacy library images
 * AVIF primary with automatic WebP fallback when the host lacks AVIF encode
 * Optional **Keep originals** (off by default)
 * Server capability panel (Imagick, GD, AVIF/WebP)
 * URL rewrite in post content and meta after conversion
 * Action Scheduler queue when available; WP-Cron fallback

#### Requirements

 * **AVIF encoding:** PHP extension **imagick** (PECL imagick) with ImageMagick 
   built for AVIF output (AVIF in `Imagick::queryFormats('AVIF')`). GD cannot encode
   AVIF in this plugin.
 * **WebP encoding:** **imagick** with WebP support, **or** PHP extension **gd**
   with WebP enabled (`imagewebp` available).
 * Sufficient disk space and CPU for batch jobs
 * **Back up `wp-content/uploads/` before running a full library batch**

Check **Media  DVMAGIC Image Conversion  Server capabilities** after install — the
panel shows Imagick, Imagick WebP, Imagick AVIF, and GD WebP on your host.

#### PHP extensions (summary)

 * **AVIF output** — PHP extension `imagick` (PECL). ImageMagick on the server must
   support AVIF encode (host-dependent; often ImageMagick 7 + libavif). Check “Imagick
   AVIF” in the plugin’s Server capabilities panel.
 * **WebP output** — `imagick` with WebP support, **or** PHP extension `gd` with
   WebP enabled (`imagewebp`).
 * **Reading JPEG/PNG/GIF** — `imagick` and/or `gd` (typical on most hosts).

If only GD with WebP is available, set **Primary format** to WebP, or leave AVIF
and the plugin will fall back to WebP when AVIF encode is not detected.

#### Author

DVMAGIC — [LinkedIn](https://www.linkedin.com/in/dmitri-shevelkin-4a654098/)

## 屏幕截图

[⌊Settings and server capability panel⌉⌊Settings and server capability panel⌉[

Settings and server capability panel

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/` or install from WordPress.org.
 2. Activate **DVMAGIC Local Image Conversion for AVIF and WebP**.
 3. Open **Media  DVMAGIC Image Conversion**.
 4. Review server capabilities, save settings, then run a small test upload before 
    batching the whole library.

## 常见问题

### Does this call an external API?

No. All encoding happens on your server.

### Will AVIF work on every host?

No. **AVIF encoding requires the PHP `imagick` extension** and an ImageMagick build
that can write AVIF (see Server capabilities: “Imagick AVIF”). Many shared hosts
have Imagick without AVIF, or only GD with WebP.

When AVIF encode is unavailable, the plugin **falls back to WebP** (via Imagick 
or GD).

### Which PHP extensions do I need?

 * **AVIF:** enable **`imagick`** in PHP and ensure ImageMagick on the server supports
   AVIF output (ask your host or check the plugin’s capability panel).
 * **WebP:** **`imagick`** (WebP) **or** **`gd`** with WebP (`imagewebp`).
 * You do **not** need both imagick and gd — one working WebP path is enough if 
   you use WebP as primary or accept AVIFWebP fallback.

### Can I keep JPEG/PNG files after conversion?

Yes. Enable **Keep originals** in settings. WordPress still serves the modern attachment
file.

## 评价

此插件暂无评价。

## 贡献者及开发者

「DVMAGIC Local Image Conversion for AVIF and WebP」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Dmitri Shevelkin ](https://profiles.wordpress.org/dvmagic/)

[帮助将「DVMAGIC Local Image Conversion for AVIF and WebP」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dvmagic-local-image-conversion)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dvmagic-local-image-conversion/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/dvmagic-local-image-conversion/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/dvmagic-local-image-conversion/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/dvmagic-local-image-conversion/)。

## 更新日志

#### 1.0.2

 * Renamed plugin for WordPress.org guidelines (distinctive DVMAGIC branding)
 * Unified `dvmlic_` prefixes for options, AJAX, hooks, and classes
 * Admin batch UI JavaScript moved to enqueued `assets/admin.js`
 * Migrates legacy `smo_*` settings on activation when present
 * Readme: explicit PHP extension requirements for AVIF (imagick) and WebP (imagick
   or gd)

#### 1.0.1

 * Plugin Check: WP_Filesystem / wp_delete_file for file ops
 * Prefixed filters and settings helper
 * Tested up to WordPress 7.1

#### 1.0.0

 * Initial WordPress.org release
 * Upload + batch conversion, keep originals, server status panel

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**6 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/dvmagic-local-image-conversion/)
 * 标签
 * [AVIF](https://cn.wordpress.org/plugins/tags/avif/)[convert images](https://cn.wordpress.org/plugins/tags/convert-images/)
   [image optimization](https://cn.wordpress.org/plugins/tags/image-optimization/)
   [media library](https://cn.wordpress.org/plugins/tags/media-library/)[webp](https://cn.wordpress.org/plugins/tags/webp/)
 *  [高级视图](https://cn.wordpress.org/plugins/dvmagic-local-image-conversion/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/dvmagic-local-image-conversion/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dvmagic-local-image-conversion/reviews/)

## 贡献者

 *   [ Dmitri Shevelkin ](https://profiles.wordpress.org/dvmagic/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/dvmagic-local-image-conversion/)