
內容簡介
EvoMedia 是一款強大的 WordPress 外掛,能夠安全地替換媒體檔案、轉換格式並清理不必要的檔案。它不僅保持附件 ID,還能自動更新資料庫中所有相關的引用,確保網站的穩定性與完整性。
【主要功能】
• 安全替換媒體檔案,保持附件 ID
• 將 JPEG 轉換為 WebP、AVIF 或 JPEG 格式
• 管理圖片子尺寸,減少不必要的檔案生成
• 調整過大的上傳圖片,避免佔用空間
• 建立圖片使用索引,方便管理與清理
• 找出重複與孤立的檔案,優化媒體庫
外掛標籤
開發者團隊
② 後台搜尋「EvoMedia – Link-Safe Media Replace, Convert & Cleanup」→ 直接安裝(推薦)
原文外掛簡介
WordPress will not let you change the file behind an existing attachment. You delete, re-upload, then hunt down thirty broken images by hand.
EvoMedia replaces the file in place, keeps the attachment ID, and rewrites every reference to it across your whole database – post content, postmeta, and the serialized structures page builders and custom fields store their data in.
That last part is the whole point. An image URL is not only in your post content. It is buried inside Elementor’s JSON, inside ACF fields, inside WooCommerce gallery meta – all of it serialized, where a naive search-and-replace corrupts the data and takes the page down with it. EvoMedia unserializes, replaces, and re-serializes each value, so the byte lengths stay correct and nothing breaks.
The same engine then lets it do something no image optimizer does: convert a JPEG to WebP and keep the attachment, renaming photo.jpg to photo.webp and repointing every reference at the new file. Other plugins keep the original and add a parallel file served through an .htaccess rule, a
And once your library grows, EvoMedia helps you see into it: an index of where every image is actually used, so you know what is safe to remove – plus reports of the duplicate and orphaned files quietly wasting your disk.
Everything runs on your own server, through Imagick or GD. No account, no API key, no credits, no monthly quota, no upload limit. Your images are never sent anywhere.
What it does
Replace media, safely – upload a new file over an existing attachment. Keep the current file name and the URL never changes; or adopt the uploaded file’s name; or change format entirely. Every reference across posts and postmeta is rewritten, serialized data included. Optionally back up the current file first, edit the title, set the date.
Convert to WebP, AVIF or JPEG – whichever your server can encode, automatically on upload or in bulk across your existing library, with progress feedback. The System Info page shows exactly which formats your image driver supports.
Manage image sub-sizes – pick which of WordPress’s resized copies get generated on upload, and switch off the ones your theme never uses so WordPress stops making them: faster uploads and less clutter from here on. See a live count of how many images in your library have each size, and regenerate the whole library to match in one click. WordPress core sizes are flagged, so you never turn one off by mistake.
Resize oversized uploads – optionally cap every incoming image at 2560px and drop the full-size original WordPress would otherwise keep beside it, so oversized photos never bloat your library. Off by default; nothing changes until you switch it on from the upload panel.
See where every image is used – build an index of your content, then read a count on each image showing how many places refer to it. Open it to see the exact pages, posts, custom fields and site settings, and which size each one uses. Sort by it to bring the unused ones together, and get a report of pages asking for files your library no longer has.
Find duplicate images – spot pictures your library holds more than once, compared byte for byte rather than guessed from their size, with the disk space the extra copies are wasting. Entries that merely share one file on disk are listed apart, because deleting one of those would take the file the others use.
Find orphaned files – list files sitting in your monthly upload folders that no Media Library item claims, each with a preview. Only the year and month folders WordPress itself creates are scanned, so caches, page-builder folders and backups are never touched, and any file your content still asks for by name is flagged as still in use.
A record of every rewrite – when Replace renames a file it rewrites the references to it across your posts, custom fields and site settings; that history is listed, so you always know what changed and where.
Backup and restore – the original is archived before every conversion, and can be restored or deleted per image or in bulk.
Compression quality – one slider, from 10 to 100. A master switch turns the engine off without deactivating the plugin.
Control Center – your whole library on one screen: sort, search, preview, download, see each file’s format, size and backup state.
System Info – a one-click report of what your server can actually do, and of every other plugin EvoMedia has to coexist with.
Why the serialization matters
Try this with any other tool: put an image in an Elementor section, then rename the file. Elementor stores its layout as a serialized PHP array inside postmeta, and every string in it is prefixed with its own byte length. Change photo.jpg to photo.webp with a plain SQL replace and the recorded length no longer matches the string. PHP refuses to unserialize it. The section disappears.
EvoMedia walks the structure, replaces the value, and lets PHP recompute the lengths. This is why it can offer replace, format conversion and (in the Pro add-on) renaming at all – and it is the part that took the longest to get right.
Take control of the sizes WordPress generates
Every upload, WordPress quietly creates a stack of resized copies – thumbnail, medium, large, and hidden HiDPI versions – whether your theme uses them or not. EvoMedia lists every registered size with a live count of how many images in your library have it, lets you turn off the ones you don’t need (only new uploads and regenerations are affected – files already on disk are left alone), and regenerates your whole library to match with a single button and a progress bar. Core sizes are flagged, so you never switch off one the theme relies on by accident.
Know which images you can actually delete
Every library accumulates images nobody uses, and the reason they are never cleared out is that you cannot tell which ones they are. Deleting the wrong one takes a page down.
EvoMedia scans your posts, pages, custom fields and site settings and records where each image is referenced – including the ones page builders name by ID with no URL to search for, and the ones held in a category image, an author profile or your site logo. Each image then carries a count you can sort by, and opening it lists the exact places, with the size each one uses.
It reports only what it can prove. An image referenced solely from a theme file, a stylesheet or an external service cannot be seen from the database, and every list says so rather than pretending otherwise. An image that has not been scanned yet shows “?” and never “0” – because “nobody uses this” and “nobody has looked” are different answers, and confusing them is how cleanup tools delete pictures that were still on a page.
Built to coexist
Media plugins break each other. EvoMedia is written to notice what else is installed:
WPML and Polylang – translated attachments share one file. EvoMedia keeps every language sibling in sync and collapses duplicates in its own lists.
Page builders – Elementor and friends store their data as slashed JSON inside postmeta. EvoMedia writes exact bytes rather than letting WordPress re-escape them.
Cloud offload – if WP Offload Media, Cloudinary, Media Cloud, WP-Stateless or S3 Uploads is active, EvoMedia refuses to touch the files rather than corrupt your remote bucket, and tells you why.
Requirements
PHP 8.1 or later, and either Imagick (recommended) or GD. Which output formats you can use depends on your host’s image driver – WebP and AVIF are common, JPEG XL is rare; the System Info page tells you exactly what your server can do.
EvoMedia Pro
Every WordPress library quietly fills with weight nothing uses: the same photo uploaded three times, sub-sizes your theme never touches, the full-resolution originals WordPress keeps beside every large image, and files left orphaned by years of renames and imports. It swells your backups, slows every migration, and quietly runs up your storage bill – and it never gets cleaned out for one reason: you cannot safely tell what is still in use.
The free EvoMedia shows you exactly where all that waste is. EvoMedia Pro is what clears it – built on the same link-safe engine, so it does the one thing other cleanup plugins get dangerously wrong: it never removes anything your site still needs.
Before it deletes a single file, the Pro re-checks your live content at that moment, not some stale scan. An image still used anywhere is left alone. A resize that would break a page is refused, and shows you which posts to fix first. Merging duplicates moves every reference – in posts, meta and page-builder data, by URL and by ID – onto the copy you keep before the others go. You get the disk space back without the broken images.
Reclaim the space unused images waste – the free “Used in” count shows which pictures nothing on your site points at; the Pro removes them, one at a time or in bulk, re-checking live and refusing to delete a file another library entry shares.
Collapse duplicate uploads into one – the same image uploaded three times is three times the disk. The Pro merges a set onto the copy you keep, repointing every reference first, then removing the rest. Reversible.
Clear orphaned files – the leftovers of old renames and imports that no library item claims, often the single heaviest files on your disk. Deleted only after a fresh re-scan, and never while your content still asks for them.
Strip the oversized “-scaled” originals – WordPress keeps a full-resolution copy beside every image over 2560px, frequently several megabytes each, named by nothing and invisible in the admin. Clear them library-wide while keeping the image people actually see.
Delete the sub-sizes you turned off – the free build stops generating them; the Pro removes the copies already on disk across your whole library, and can regenerate a single size for every image in one pass.
Resize on your own terms – set your own maximum width and height on upload instead of the fixed 2560px cap, and shrink any single image already in your library straight from the Control Center: proportional, never enlarging, and refusing rather than breaking a page that uses the old size.
Rename without breaking anything – rename a file from the Media Library and have every reference rewritten, serialized page-builder and ACF data included, exactly like Replace. Reversible.
And more – JPEG XL uploads where your server supports them, and a backups manager to browse, download and delete your archived originals.
EvoMedia Pro installs alongside this plugin and needs it to run. It is available from the author at store.gfxproductions.com.
None of that code is in this plugin. This plugin is not a trial and has nothing locked, disabled or limited. There is no licence check, no upsell nag, no counter, no expiry, and no cap on how many images you may process. Everything it ships, it does.
