內容簡介
AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網站有許多全尺寸照片,當運行在伺服器端的腳本所需的時間變長時,這就會導致問題。不幸的是,腳本運行的時間是有限的,這將限制您可以重新生成的縮圖數量。此數量取決於伺服器配置和伺服器可用的計算能力。當您超過此限制時,您將無法重新建立縮圖。
為什麼您要重新建立縮圖呢?WordPress 允許您更改縮圖的大小。這樣,您可以使縮圖的大小配合您網站的設計。當您更改大小以適應新的佈景主題時,您將上傳的所有未來照片都將具有此新大小。但是,您的舊縮圖將不會被調整大小。這就是此外掛的作用。在更改圖像大小後,您可以重新建立所有縮圖。但是,它們不是一次性地导致伺服器重新創建所有縮圖,而是逐一重新創建。重新建立一張照片的縮圖不會花費太長時間,因此您不會遇到任何腳本超時問題。請注意,您仍然需要等到所有縮圖重新建立完成。如果在任務完成之前關閉頁面,您就必須重新開始。
您還可以選擇要重新建立的縮圖大小,以便在更改一個縮略圖大小時,您不需要重新創建所有圖像。您也可以選擇只重新建立文章縮圖 (特色圖片)。
此外掛需要啟用 JavaScript。
歡迎在GitHub上貢獻。
外掛標籤
開發者團隊
原文外掛簡介
AJAX Thumbnail Rebuild allows you to rebuild all thumbnails on your site. There are already some plugins available for this, but they have one thing in common: All thumbnails are rebuilt in a single step. This works fine when you don’t have that many photos on your site. When you have a lot of full-size photos, the script on the server side takes a long time to run. Unfortunately the time a script is allowed to run is limited, which sets an upper limit to the number of thumbnails you can regenerate. This number depends on the server configuration and the computing power your server has available. When you get over this limit, you won’t be able to rebuild your thumbnails.
Why would you want to rebuild your thumbnails? WordPress allows you to change the size of thumbnails. This way, you can make the size of thumbnails fit the design of your website. When you change the size to fit for a new theme, all future photos you are going to upload will have this new size. Your old thumbnails won’t be resized. That’s where this plugin comes into action. After changing the image sizes, you can rebuild all thumbnails. But instead of telling the server to recreate all thumbnails at once, they are rebuilt one after another. Rebuilding thumbnails for one photo won’t take all too long, so you won’t run into any script timeouts. Note that you still have to wait until all thumbnails have been rebuilt. If you close the page before the task is completed, you have to start all over again.
You can also select the thumbnail sizes you want to rebuild, so that you don’t need to recreate all images if you’ve just changed one thumbnail-size. You can also choose to only rebuild post thumbnails (featured images).
This plugin requires JavaScript to be enabled.
Contributions are welcome at Github
