前言介紹
- 這款 WordPress 外掛「OTF Regenerate Thumbnails」是 2015-01-25 上架。
- 目前有 5000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2713 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
- 有 19 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
bfintal |
外掛標籤
resize | automatic | thumbnail | regenerate | thumbnails |
內容簡介
這個外掛與 Regenerate Thumbnails 差不多,不過圖片會在使用時自動調整大小。一旦圖片生成後,便不會再處理。
只要以下條件改變,縮略圖就會自動改變大小:
在「媒體設定」中修改圖像大小
切換有不同縮略圖/特色圖像大小的佈景主題和外掛程式
不用設定頁面,只需安裝外掛並啟用,就可以馬上使用。
從 GitHub 存儲庫中回報錯誤並協助改善代碼。
你在說什麼?
試試看。在正常的 WordPress 網站設置中,在編輯文章或頁面時,使用「添加媒體」按鈕創建一個圖庫,使用縮略圖。然後檢查圖庫。
注意縮略圖的大小,很可能是 150 x 150。看到了嗎?太好了。
現在移動到「媒體設定」,將縮略圖大小修改成更酷的、長方形的尺寸,例如 400 x 200。保存。
返回之前創建的圖庫,刷新瀏覽器。你很可能看不到 400 x 200 的縮略圖。
OTF Regenerate Thumbnails 可以為您解決此問題。
用法
OTF Regenerate Thumbnails 應該立即運行,當尺寸改變時,圖像應該會被自動調整大小。
對於開發人員和愛動手的人,確保圖像得到適當調整大小需要使用 WordPress 的圖像函數顯示特色圖像和圖像附件。別擔心,這是件好事。
確保每次顯示圖片時都使用 WordPress 函數:
wp_get_attachment_image_src
wp_get_attachment_image
the_post_thumbnail
get_the_post_thumbnail
你也可以使用 add_image_size 添加尺寸名稱。
功能
創建調整縮略圖的大小
處理「媒體設定」中的圖像大小更改
處理因切換佈景主題和外掛程式而引入的縮略圖/圖像大小更改
自動運行,無需設置
所有 the_post_thumbnail 和其他縮略圖函數的調用都會被自動處理
處理從 add_image_size 創建的圖像大小
處理 2 個項目的陣列大小
原文外掛簡介
This plugin behaves similarly to Regenerate Thumbnails except that images are resized automatically / on the fly, when they are used. Once created, they won’t be processed again.
Your thumbnails will now resize when:
Image Sizes in Settings > Media is modified,
Switching themes & plugins with different thumbnail / featured image sizes
No settings pages, just install and activate and things should work right away.
Report bugs and help out in the code from the Github repository
What are you talking about?
Test it out. In your normal WordPress website set up, create a gallery using the Add Media button while editing a post or page and use thumbnails. Afterwards, check out your gallery.
Notice the size of your thumbnails, most likely they’re 150 x 150. Do you see it? Great.
Now head over to Settings > Media and change your thumbnail size to something cooler, something rectangular, let’s try 400 x 200. Save it.
Go back to your gallery that you previously created and refresh your browser. Most likely you won’t be seeing 400 x 200 thumbnails there.
OTF Regenerate Thumbnails fixes this for you.
Usage
OTF Regenerate Thumbnails should work right away, and your images should get resized when the dimensions get changed.
For developers & tinkerers, ensuring your images get resized properly requires you to use WordPress’ image functions to display featured images and image attachments. Don’t worry, this is a good thing.
Make sure you use these WordPress functions every time you display images:
wp_get_attachment_image_src
wp_get_attachment_image
the_post_thumbnail
get_the_post_thumbnail
You can also add size names using add_image_size
Features
Creates Resizes thumbnails on the fly
Handles Image Size settings changes in Settings > Media
Handles thumbnail / image size changes introduced by switching themes & plugins
Works automatically, no setup needed
All calls to the_post_thumbnail and other thumbnail functions are handled automatically
Handles image sizes created from add_image_size,
Handles 2-item array sizes
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「OTF Regenerate Thumbnails」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Perfect Images 》使用 Perfect Images,輕鬆掌握您的圖像!這個強大的外掛可助您進行圖像優化和管理,輕鬆替換或批量重新生成現有圖像,設置自定義尺寸,提高性能,並為高質量...。
ImageMagick Engine 》透過讓 WordPress 使用 ImageMagick 而非標準的 GD 圖像庫,大幅提升重新調整大小的圖像品質。, 功能, , 在重新調整大小的圖像中保留嵌入式色彩設定檔, 自動...。
AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
Image Regenerate & Select Crop 》該外掛可管理圖像的高級設置,覆蓋本機的中等大小和大型裁剪選項,註冊新的自定義圖像尺寸。該外掛添加了兩個自定義按鈕,讓您可以重新生成和裁剪圖像,提供...。
Thumbnail Cleaner 》Thumbnails Cleaner 可協助您保持 WordPress 安裝的整潔,通過刪除和重新生成縮略圖。, 您可以透過“工具”下的插件主頁來控制所有功能。您可以:, , 分析您的...。
ONet Regenerate Thumbnails 》這個外掛能夠幫助您在相當短的時間內解決所有缺少縮圖的問題。您只需要點擊幾下,外掛就會完成其餘的工作。如果您的資料庫中有數千張圖片,這個外掛可能非常...。
Real Thumbnail Generator: Efficient regeneration of thumbnails in all sizes 》重新生成單個或多個圖片大小,並為 WordPress 網站創建一個優化的自定義結構以上傳縮略圖。, 免費版本可重製無限量縮略圖!, 在優化 WordPress 網站的過程中...。
Media Meta & Force Regenerate 》本外掛會在媒體庫顯示元數據資訊。即使已經存在,也會重新生成元數據和縮略圖。當元數據損壞時,這個外掛非常有用。外掛非常輕量化。, 我使用這個工具來偵錯...。
Generate Thumbnail 》Generate Thumbnail 外掛可以讓你在網站上生成所有縮圖。雖然已經有一些可用的外掛可以達成這一點,但它們都有一個共同點:所有縮圖都在一個步驟中重新生成。...。
Regenerate Thumbnails HTML 》當您在 WordPress 中插入圖片時,它總是有一個特定的圖片大小。它可以是像「中等尺寸」、「大型尺寸」這樣的圖片大小,由您的佈景主題或其他外掛設定。當您更...。
Thumbnails like in Drupal 》使用本外掛可以選擇所需的縮略圖(此處稱為預設值),並對其應用可用的圖像效果,以獲得期望的大小或視圖。, 本外掛可以實現以下功能:, , 更改現有預設值或...。