內容簡介
這個 WordPress 外掛可以透過 reSmush.it API,上傳由 Google's Lighthouse 網站審核工具生成的 JSON 檔案,壓縮並替換所有被標示的圖片。
使用說明
在要優化圖片的網頁上執行 Lighthouse,最簡單的方式是使用 Chrome 開發者工具,但您還可以使用 Lighthouse Chrome 擴充功能 或 使用 Node 在命令行上運行審核工具。
下載審核報告的 JSON 檔案。
在 WordPress 儀表板中,到達 媒體 -> Lighthouse 圖片優化器,上傳 JSON 檔案,並點擊「優化圖片」。
外掛標籤
開發者團隊
② 後台搜尋「Image Optimizer for Google Lighthouse」→ 直接安裝(推薦)
原文外掛簡介
Upload a JSON file generated by Google’s Lighthouse website auditing tool and this plugin will compress and replace all flagged images using the reSmush.it API.
Instructions
Run Lighthouse on the page of your website you want to optimize images. The easiest way to do this is using Chrome Developer Tools, but you may also utilize the Lighthouse Chrome Extension or run an audit on the command line using Node.
Download the report as a JSON file.
In the WordPress Dashboard, navigate to Media -> Lighthouse Image Optimizer, upload the JSON file and click “Optimize Images.”
