
內容簡介
這個外掛可以快速簡易地自動提供 WebP 和 AVIF 格式的圖像給支援這些格式的瀏覽器(有原始格式的替代方案)。
功能
可以自動轉換 JP(E)G/PNG 圖像成 WebP/AVIF 格式。
提供 WebP/AVIF 格式給支援相應格式的瀏覽器(基於「Accept」標頭)。
圖像在被需要時排隊等待,並在背景中進行轉換。
未被使用的圖像(未被請求)不會被轉換以節省資源。
所有圖像都是無損轉換,不會有品質損失。
圖像的 URL 不會更改,解決方案純粹基於 .htaccess 重寫規則。
當瀏覽器/客戶端不支援 WebP(例如 Microsoft Outlook)時,WebP 圖像會以 PNG 形式提供。
瀏覽器支援
WebP:所有現代瀏覽器
AVIF:Chrome、Firefox、Safari(Edge 目前不支援 AVIF)
外掛標籤
開發者團隊
原文外掛簡介
Fast, simple & free plugin to automatically convert and serve WebP & AVIF images.
Features
Automatically convert and serve WebP/AVIF images.
Increase your Google Pagespeed.
Only images which are really used will be converted, does not convert the whole media library.
WebP/AVIF quality is adjustable (default 100% = no quality loss)
No image URLs are changed, solution is purely based on .htaccess rewrite rules.
Serve original format in case the browser does not support WebP/AVIF (relying on the “Accept” header).
The following source formats are supported: JP(E)G, PNG, GIF, BMP.
Extra feature: WebP images are served as PNG when the browser/client does not support WebP (e.g. Microsoft Outlook).
Browser support
WebP: all modern browsers
AVIF: Chrome, Firefox, Safari (Edge doesn’t support AVIF yet)
Good to know
It may take a few minutes before the WebP/AVIF images are generated after activating the plugin.
AVIF is a relatively new format, and not widely supported yet on servers. This depends on your server configuration (see Server requirements).
Generating AVIF images is CPU-intensive, and may take a while.
WebP/AVIF format is only served when this format is smaller than the original file. Depending on the image, WebP/AVIF is not always the most efficient format.
Animated GIF-images are not supported yet as GDlib/ImageMagick don’t have support for it
How the plugin works
The plugin does nothing until the first image is requested. Here is the conversion flow.
Original image is requested in browser
Image is added to the conversion queue, original image is still served.
Conversion queue is processed in background, queued images are converted to WebP/AVIF format.
When the image is requested now, and the browser supports WebP and/or AVIF, the WebP/AVIF image is served.
