[WordPress] 外掛分享: WURFL Image Tailor (WIT)

WordPress 外掛 WURFL Image Tailor (WIT) 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WURFL Image Tailor (WIT)」是 2015-04-12 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2016-03-31,距離現在已有 3320 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

nevma |

外掛標籤

wit | wurfl | resize | downsize | Optimize | mobile images | adaptive images | responsive images |

內容簡介

將圖片大小調整為適合行動裝置的尺寸

WURFL Image Tailor (WIT) http://web.wurfl.io/#wit 是一個自動圖片轉換並提供服務的外掛,
使用 WURFL 設備偵測函式庫 http://web.wurfl.io/#learnmore。WURFL 會偵測設備和螢幕尺寸,
並根據設備和螢幕尺寸調整每個圖片的大小和優化程度。

此外掛會自動連結到 WordPress HTML 圖片代碼生成程序,並更改每個圖片的 src 屬性,以便針對特定的設備進行優化,並通過 WURFL Image Tailor 服務進行提供。

此外掛還會過濾文章內容,將其中所有圖片的 src 屬性替換掉。但目前它只會更改文章內出現的所有 (!) 圖片的 src 屬性,並未替換到指向媒體庫中的圖片的鏈結的 href 屬性。

使用 WordPress 函式和過濾器

請務必使用以下函式:

the_post_thumbnail(…)
wp_get_attachment_image(…)
the_content(…)

然而,請勿使用wp_get_attachment_image_src(),因為我們目前還無法鉤取進去!目前此外掛已鉤取至這些 WordPress 過濾器:

wp_get_attachment_image_attributes
the_content

適應性圖片

另外,可以參考 Adaptive Images for WordPress https://wordpress.org/plugins/adaptive-images/ 這個自行搭建的透明移動圖片解決方案。

原文外掛簡介

Deliver downsized images to mobile devices
WURFL Image Tailor (WIT) http://web.wurfl.io/#wit is an automatic image transformation and delivery service, based on
the WURFL device detection library http://web.wurfl.io/#learnmore. WURFL will detect the device, and its screen size
and it will resize and optimize (downsize) each image accordingly.
This plugin hooks automatically into the WordPress HTML image code generation process and changes each image’s src
attribute, so that it is optimized for that specific device and delivered via the WURFL Image Tailor service.
The plugin also filters the post contents to replace the src attribute of images in it. But it currently does this for
all (!) images that it finds in the post contents. Right now it does not replace the href attribute of links that
point to images in the media gallery.
Use WordPress functions and filters
Make sure you use functions like:

the_post_thumbnail(…)
wp_get_attachment_image(…)
the_content(…)

However, do not use wp_get_attachment_image_src(), because we cannot hook into it (yet)! Right now the plugin hooks
into these WordPress filters:

wp_get_attachment_image_attributes
the_content

Adaptive Images
Also, checkout Adaptive Images for WordPress https://wordpress.org/plugins/adaptive-images/ a self-hosted, transparent mobile images solution.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WURFL Image Tailor (WIT)」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.9.04 |

延伸相關外掛(你可能也想知道)

  • Adaptive Images for WordPress 》Adaptive Images, 透明地調整和優化傳輸到行動設備的圖像,大幅減少總下載時間。該插件作為 WordPress 網站和設備之間的過濾器,向設備提供較小的圖像。, 請...。

文章
Filter
Apply Filters
Mastodon