需轉檔的影像格式: 1. None:不轉檔。 2. Only Jpegs:僅轉換 JPEG。 3. Only pngs:僅轉換 PNG。 4. Both jpegs and pngs:轉換 JPEG 與 PNG。
Destination folder
轉檔後的影像資料夾位置,僅 wp-content/uploads 資料夾下影像有效: 1. In separate folder:單獨資料夾,位置為 wp-content/webp-express/webp-images/doc-root/wp-content/uploads。 2. Mingled:與原圖檔同一資料夾。
File extension
副檔名格式,僅 Destination folder 為 Mingled 模式可用: 1. Append “.webp”:轉換後的影像名稱會變成 123.png.webp 或 123.jpeg.webp。 2. Set to “.webp”:直接設定為 123.webp。
Destination structure
轉檔後影像資料夾結構: 1. Document root:建議值,所有轉檔後影像將會按照原結構移動至 wp-content/webp-express/webp-images/doc-root。 2. Image roots:使用原影像的結構,例如 wp-content/uploads/123.jpg 會變成 wp-content/uploads/123.webp,但如果 Destination folder 設定為 In separate folder 則會改置於 wp-content/webp-express/webp-images。
Cache-Control header
快取標頭設定,一般會在伺服器上完成設定,故省略。
Prevent using webps larger than original
防止轉檔後的檔案比原影像還大,如果網站以效能取向請啟用,如只是要提升 SEO 分數則取消。
三、Redirection rules
名稱
說明
Enable redirection to converter?
是否一律重導影像檔至轉換器,如已存在 WebP 版本與瀏覽器支援時回傳轉檔後圖檔,否則回傳原圖檔。
Do not pass source in Query String
是否要忽略查詢字串,查詢字串為網址中 ? 後的所有文字。
Enable direct redirection to existing converted images?