[WordPress] 外掛分享: ImageWoc

首頁外掛目錄 › ImageWoc
WordPress 外掛 ImageWoc 的封面圖片
全新外掛
安裝啟用
尚無評分
6 天前
最後更新
問題解決
WordPress 6.4+ PHP 8.0+ v0.6.0 上架:2026-09-08

內容簡介

ImageWoc 是一款專為 WordPress 設計的圖像優化與轉換外掛,能夠在本地伺服器上處理圖像,提供自動優化、格式轉換及備份功能,確保網站圖像的質量與效能。

【主要功能】
• 自動優化媒體庫上傳的圖像
• 支援 JPG、PNG、WebP 格式轉換
• 按比例調整圖像大小,無裁剪或失真
• 保留原始圖像的未處理備份
• 優化預覽功能,無需修改媒體庫
• 自動與手動回滾交易功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.6.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ImageWoc」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ImageWoc (Image WordPress Optimization & Conversion) processes images locally on your WordPress server. It can resize oversized uploads proportionally, convert supported source images to JPG, PNG, or WebP, control output quality, preserve transparency when possible, and keep one untouched backup of every original image for future reprocessing.
A key feature is reference-safe bulk optimization. When an existing Media Library image is converted and its master filename or extension changes, ImageWoc keeps the same WordPress attachment ID and updates stored references from the old image URL to the new optimized URL. It also maps regenerated WordPress intermediate-size URLs where matching sizes exist.
This helps prevent broken image references when optimized images are already used in posts, pages, Gutenberg blocks, page-builder data, widgets, templates, menus, links, and other content stored in standard WordPress posts, metadata, and options.
Main features

Automatic optimization during Media Library uploads.
Global enable/disable switch without deactivating the plugin.
Proportional resizing based on a configurable maximum long side. No cropping or distortion.
Output conversion to JPG, PNG, or WebP.
Configurable quality from 0 to 100.
Preserves alpha transparency when the selected output format supports it.
If transparent content cannot safely be saved as JPEG, the plugin uses a supported alpha-capable output instead of flattening the image.
Keeps one untouched backup of the original uploaded file.
WordPress generates its normal thumbnail and intermediate sizes from the optimized master image.
If input and output formats are already the same, re-encoding is avoided unless resizing is required.
Supports JPG/JPEG, PNG, WebP, static GIF, TIFF/TIF, BMP, AVIF, HEIC/HEIF as input when the server image libraries/codecs support them.
Animated GIF files are skipped to preserve animation frames.
Uses WordPress image editing APIs and the image capabilities available on the server.

Optimization Preview / Dry Run
Before changing the Media Library, ImageWoc can run a read-only preview using the current settings. The preview reports how many images would change, how many would be resized or converted, and an estimated storage reduction. No image files, attachment metadata, or stored content references are modified during the preview.
Automatic and manual rollback transactions
Each bulk optimization run is treated as a transaction. Before an attachment is changed, ImageWoc stores a protected snapshot of its current master file, registered WordPress intermediate sizes, attachment metadata, MIME type, and reference migration map. If a processing failure occurs after the attachment has begun changing, ImageWoc attempts to restore that snapshot automatically.
The administrator can also roll back the latest bulk transaction from the ImageWoc settings screen. Manual rollback restores the pre-batch image files and WordPress metadata and reverses the stored URL replacements made by ImageWoc. Rollback runs in short resumable requests rather than one long PHP request.
ImageWoc Health Scanner
The read-only Health Scanner checks the Media Library for common image integrity and optimization issues, including missing master files, incomplete attachment metadata, registered intermediate sizes missing from disk, missing untouched original backups, masters larger than the configured long-side limit, output-format mismatches, and unusually large master files. Findings are grouped by severity and the scanner does not modify the Media Library.
Existing Media Library / bulk optimization

Processes existing image attachments in small asynchronous requests to reduce the risk of PHP timeouts.
Uses an attachment-ID cursor instead of large SQL OFFSET scans.
Saves progress after each processed image.
Pause and resume support.
Can resume after refreshing the admin page.
Persistent progress counters for processed, skipped, and failed items.
Detailed downloadable log.
Reprocesses from the untouched backup when a backup already exists.
Keeps the original WordPress attachment ID unchanged.
Updates old master-image URLs to the newly optimized master URL.
Updates known old intermediate-size URLs to regenerated intermediate-size URLs.
Handles replacements inside standard WordPress content, options, and metadata, including serialized PHP data and JSON values.
Clears relevant WordPress caches after reference updates.
Provides developer hooks for integrations that need to update proprietary custom tables or storage.

Stored reference updates
During bulk optimization, URL replacement covers standard WordPress storage used by many themes and plugins, including:

post content, including Gutenberg block markup stored in post_content;
post metadata commonly used by page builders and custom fields;
WordPress options, including widget and global configuration data;
term metadata;
user metadata;
comment metadata.

The replacement layer is serialization-aware and JSON-aware. The attachment ID remains unchanged, so integrations that reference Media Library images by attachment ID continue to reference the same attachment.
Third-party plugins can store image URLs in proprietary database tables or external systems. Those stores cannot be discovered safely in a generic way, so ImageWoc exposes hooks that integrations can use to extend reference migration.
Original image backups
Before processing an uploaded image, ImageWoc stores one untouched copy of the source file in a protected backup area under the WordPress uploads directory. WordPress-generated thumbnails are not duplicated into the backup.
When an image is optimized again later, the plugin can work from this untouched source instead of recompressing a previously optimized image. This avoids cumulative quality loss when changing dimensions, output format, or quality settings.
Original backups are intentionally not deleted automatically when the plugin is uninstalled, to reduce the risk of accidental loss of source files.
Image format notes
Available source formats depend on the image libraries and codecs installed on the web server. Formats such as TIFF, AVIF, HEIC, and HEIF commonly require Imagick/ImageMagick with the corresponding codec support.
JPEG does not support alpha transparency. ImageWoc avoids destructive transparency flattening and selects an available alpha-capable format when needed.
Privacy
ImageWoc does not send image files, site content, or usage data to an external service. Image processing and logging are performed on the WordPress server.

延伸相關外掛

文章
Filter
Mastodon