[WordPress] 外掛分享: FWS On-Demand-Resizer

首頁外掛目錄 › FWS On-Demand-Resizer
20+
安裝啟用
尚無評分
156 天前
最後更新
問題解決
WordPress 4.8+ PHP 7.0+ v0.5.2 上架:2020-09-08

內容簡介

這個外掛是針對 WordPress 架構中已知的一個問題提供解決方案:
自動調整上傳圖片以符合每個註冊的媒體大小。

雖然主機空間費用很低,可用的容量很大,但如果您有超過十個(或更多)註冊大小,這可能是個問題,
因為您的備份文件會變得比 10Gb 還要大。
遲早您會在下載(甚至更糟的是上傳)備份文件的情況下遇到這個問題。

我們的分析顯示,絕大多數的調整大小的縮略圖在網站上並未被使用。
對於具有 WooCommerce 和其他 3 個自定義媒體大小的典型佈景主題,這個百分比可能超過 90%,
對於具有 6 個自定義媒體大小的佈景主題,它超過 96%!!!

因此,開發人員常常不舒服註冊更多的媒體大小,試圖找到一些解決方法或違反設計以容納現有的類似大小。

這個外掛的目的是消除這種開銷,並允許開發人員註冊所需的許多大小。

它將攔截上傳過程,防止創建縮略圖,並攔截 getter
(wp_get_attachment_image_src()、get_the_post_thumbnail_url()、the_post_thumbnail() 等)以根據需要創建縮略圖。
另外,它還會在數據庫中註冊每個創建的縮略圖,允許 WordPress 在刪除父圖像時自動刪除它。

使用方法

在這個工具的「設置」選項卡中,您可以為每個大小選擇個別啟用或禁用此功能。
通常情況下,您會啟用所有大小。

「實用工具」選項卡上的「刪除」按鈕將刪除由此插件處理的所有大小的所有縮略圖。
這將顯著減少您的「上傳」目錄的大小,允許根據需要重新創建新的縮略圖。

視頻演示:

聯繫

請將錯誤報告和功能請求發送至 [email protected]

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin is solution for well known flaw in WordPress architecture:
automatic resizing uploaded images in each of registered media sizes.
Although price of hosting space is low and we have gigabytes available that can be issue if you have dozen
(or more) registered sizes and because of that your backup files became larger than 10Gb.
Sooner or later you will be in situation to download (or even worse – to upload) that backup file.
Our analysis shows that vast majority of resized thumbnails are not used anywhere in website.
For typical theme with WooCommerce and additional 3 custom media sizes that percentage can be over 90%,
with 6 custom media sizes it is over 96% !!!
Because of that developers are often uncomfortable with registering more media sizes trying to find
some workarounds or violating design to accommodate existing similar sizes.
Purpose of this plugin is to eliminate that overhead and allow developer to register as many sizes as he needs.
It will intercept uploading process to prevent creation of thumbnails and intercept getters
(wp_get_attachment_image_src(), get_the_post_thumbnail_url(), the_post_thumbnail(),…) to create thumbnail if needed.
Additionally, it will register in database each created thumbnail allowing WordPress to delete it automatically
when parent image is deleted.
Usage
At “Settings” tab of this tool you can pick individually for which size you want to enable or disable this functionality.
Typically, you will enable it for all sizes.
Button “Delete” on “Utilities” tab will remove all thumbnails for sizes that are handled by this plugin.
That will significantly reduce size of your “uploads” directory allowing new thumbnails to be recreated on demand.
Button “Regenerate all thumbnails” will remove existing and create new thumbnails for all your uploaded images.
Video demonstration:

Contact
Please, send bug reports and feature requests to [email protected]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon