Title: DMN (Image Compression)
Author: DMN Creative
Published: <strong>2025 年 10 月 3 日</strong>
Last modified: 2025 年 10 月 7 日

---

搜索插件

![](https://ps.w.org/dmn-image-compression/assets/banner-772x250.jpg?rev=3372442)

![](https://ps.w.org/dmn-image-compression/assets/icon-128x128.jpg?rev=3372442)

# DMN (Image Compression)

 作者：[DMN Creative](https://profiles.wordpress.org/dmnplugins/)

[下载](https://downloads.wordpress.org/plugin/dmn-image-compression.zip)

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

 [支持](https://wordpress.org/support/plugin/dmn-image-compression/)

## 描述

The DMN Image Compression plugin automatically compresses and optimizes images uploaded
to your WordPress site using a self-hosted compression gateway. It replaces large
or wide images with compressed versions to reduce file sizes and improve site performance,
while keeping the original image URLs intact.

Images larger than the configured minimum size or wider than the configured maximum
width are sent to the compression gateway for resizing and quality adjustment. The
plugin also supports batch processing of existing images and automatic compression
on new uploads. All actions are logged to the database (admin logs) and exposed 
on the plugin settings page for monitoring.

### External services

This plugin connects to an external compression gateway to perform image resizing
and compression. The gateway is hosted at: https://dmndev.co.za/apps/dmnic/dmn_ic_request.
php

What the service is and what it is used for:
 – The gateway accepts an image URL
and returns a compressed image. The plugin uses this service to reduce image file
sizes and optionally resize images to the configured maximum width.

What data is sent and when:
 – Each time an image is processed the plugin makes 
an HTTP GET request to the gateway. The following query parameters are sent: – url:
the publicly accessible URL of the image being compressed – domain: the host/domain
of the WordPress site requesting compression – q: integer compression quality (1-
100) – w: integer target width in pixels

Why this data is sent:
 – The gateway needs the image URL to download the image 
to compress and the domain + parameters to tailor the output (quality and width)
for the request.

Links:
 – Gateway domain: https://dmndev.co.za/

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/dmn-image-compression` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Configure the plugin settings under Settings  DMN Image Compression if needed.

## 常见问题

### How does the plugin compress images?

It uses the configured compression gateway to resize and compress images based on
the configured quality and width parameters. The request is sent to the gateway 
and the returned image is saved over the original file on disk.

### Will this plugin affect existing images?

Yes, you can batch-process existing images in your media library using the built-
in batch feature, or rely on automatic compression for new uploads.

### Does it keep the original image URLs?

Yes, the plugin replaces the original image files with compressed versions, maintaining
the same attachment ID and URLs to avoid broken links.

### Where can I find logs of compression activity?

Compression activity is recorded in the plugin’s admin logs (accessible from Tools
DMN IC Logs) and in the plugin settings page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「DMN (Image Compression)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ DMN Creative ](https://profiles.wordpress.org/dmnplugins/)

[帮助将「DMN (Image Compression)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dmn-image-compression)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * Updated readme to fix inconsistance in wording.

#### 1.0.0

 * Initial release of DMN Image Compression plugin using a compression gateway for
   image optimization.
 * Supports batch processing and automatic compression on upload.
 * Admin logs and settings page included.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**8 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/dmn-image-compression/)
 * 标签
 * [image compression](https://cn.wordpress.org/plugins/tags/image-compression/)
   [images](https://cn.wordpress.org/plugins/tags/images/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)
 *  [高级视图](https://cn.wordpress.org/plugins/dmn-image-compression/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/dmn-image-compression/reviews/#new-post)

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

## 贡献者

 *   [ DMN Creative ](https://profiles.wordpress.org/dmnplugins/)

## 支持

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

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