
內容簡介
Slimage 使用 jpegoptim 和 optipng 在圖片上傳時進行壓縮,它會壓縮 WordPress 生成的縮略圖,但保留原始檔案以便在必要時恢復更改。
此外,外掛還允許您逐個圖像設置壓縮級別和品質。這樣,您就可以完全掌控為實現更好的性能改進而願意犧牲多少質量,這在您想通過 Google PageSpeed 測試時非常方便。
如果與 WP-CLI 的 wp media regenerate 命令或某些縮略圖再生插件一起使用,您可以批量優化照片,甚至可以進行實驗,找到適合您的質量/大小組合。
要使用此外掛,您需要在您的伺服器上安裝 jpegoptim 和 optipng ,並確保您的 php.ini 中未禁用 PHP 的 shell_exec() 函數。
功能
在圖片上傳期間進行壓縮。
您可以為所有新上傳的圖像設置默認壓縮級別。
您可以對每個圖像覆蓋壓縮級別。
您可以使用jpegoptim和optipng的所有可用選項。
結合某些圖像再生插件一起使用,您可以批量壓縮現有圖像。
此外掛保留原始圖像,可逆轉任何更改。
外掛標籤
開發者團隊
原文外掛簡介
Slimage uses jpegoptim and optipng to compress your images during upload. It will compress the thumbnails that WordPress generates but will leave the original file intact, so that you can safely restore your changes if necessary.
The plugin will also allow you to manually set the compression level and quality on a per-image basis. That way you have absolute control on how much quality you are willing to sacrifice in order to achieve better performance improvements, which can be handy if you want to pass the Google PageSpeed test.
Using it in conjuction with the wp media regenerate command of WP-CLI or with some thumbnail regeneration plugin, you can bulk optimize your photos and even experiment until you find the combination of quality/size that suits you.
To use the plugin you need to have jpegoptim and optipng installed on your server and make sure that PHP shell_exec() function isn’t disabled in your php.ini.
Features
Compress an image during upload.
You can set a default level of compression for all newly uploaded images.
You can override that compression level on a per-image basis.
You can use all the available options of jpegoptim and optipng.
Combining it with some image regeneration tool, you can bulk compress your existing images.
The plugin leaves the original image intact, so that any change that you make can be reversible.
