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 (Image Compression)〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.