內容簡介
Generate Thumbnail 外掛可以讓你在網站上生成所有縮圖。雖然已經有一些可用的外掛可以達成這一點,但它們都有一個共同點:所有縮圖都在一個步驟中重新生成。當你在網站上有很多全尺寸的照片時,這種方式運作良好。但是,伺服器端的腳本需要耗費很長時間運行。不幸的是,腳本運行的時間是受限制的,這為你生成縮圖數量設定了一個上限。這個數量取決於伺服器配置和你的伺服器可用的運算能力。當你超出這個限制時,你將無法生成縮圖。
為什麼你想要生成縮圖呢?WordPress 允許你更改縮圖大小。這樣,你就可以使縮圖的大小適應你的網站設計。當你將大小更改為適應新的主題時,你即將上傳的所有照片將具有這個新的大小,但是舊的縮圖不會被調整尺寸。這就是這個外掛的作用所在。在更改圖像大小後,你可以生成所有縮圖。但是,與其要求伺服器一次性重新創建所有縮圖,他們將一個一個生成。生成一張圖片的縮圖不會花費太長時間,因此你不會遇到任何腳本超時的問題。請注意,仍需等待直到所有縮圖被重建。如果在任務完成之前關閉網頁,你就必須再次開始。
你還可以選擇你想要生成的縮圖尺寸,這樣當你只更改一個縮圖大小時,就不需要重新生成所有的圖片。你還可以選擇只生成文章縮圖(特色圖片)。
此外掛需要啟用 JavaScript 功能。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Generate Thumbnail allows you to generate all thumbnails on your site. There are already some plugins available for this, but they have one thing in common: All thumbnails are regenerate 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 generate your thumbnails.
Why would you want to generate 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 generate all thumbnails. But instead of telling the server to recreate all thumbnails at once, they are generate one after another. Generateing 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 generate, so that you don’t need to recreate all images if you’ve just changed one thumbnail-size. You can also choose to only generate post thumbnails (featured images).
This plugin requires JavaScript to be enabled.
