內容簡介
很多主題都附帶Timthumb,因為它允許用戶在不重新建立縮略圖的情況下開始使用主題。
安全圖像調整大小提供了一種更安全的替代方案。它允許主題開發人員依賴 WordPress 自己的圖像調整大小功能,使用 add_image_size 和 get_the_post_thumbnail。
當調用 get_the_post_thumbnail 時,安全圖像調整大小會檢查所請求的圖像尺寸是否存在。如果圖像不存在,它會動態創建調整大小版本。它在後台上工作,沒有前端功能。
主題開發人員可以將此插件打包到其主題中,或建議用戶安裝它。
它還包括 2 个函數 so_resize_custom 和 so_resize_custom_html,以使用 Imagick 動態調整圖像大小。非常適合主題開發人員。
請注意:這是安全圖像調整大小的早期版本。請使用它,嘗試破壞它,並向 [email protected] 報告任何錯誤,以便我快速修正錯誤並致力於版本 1.0。
外掛標籤
開發者團隊
原文外掛簡介
A lot of themes ship with Timthumb because it allows their users to start using the theme without rebuilding thumbnails.
Secure Image Resizer offers a far more secure alternative. It allows theme developers to rely on WordPress’ own image resizing functionality using add_image_size and get_the_post_thumbnail.
When get_the_post_thumbnail is called, Secure Image Resizer checks if the requested image size exists. If the image doesn’t exist it dynamically creates the resized version. It works in the background, with no front end functionality.
Theme developers can either bundle this plugin into their themes, or suggest that their users install it.
It also includes 2 functions so_resize_custom and so_resize_custom_html to do dynamic image resizing using Imagick. Great for theme developers.
Please Note: This is an early release of Secure Image Resizer. Please use it, try and break it and report any bugs to me [email protected] so I can quickly fix them and work towards version 1.0.
