跳至內容
工具

JPEG Quality Filter

WordPress recompresses your images at 82% — change it

在你的瀏覽器裡執行。什麼都不會被上傳。

Quality

What it does to a flat graphic

A hard edge on a flat colour is the worst case for JPEG. Drag the slider and watch the halo appear around the shapes. This is rendered live in your browser at the exact quality you picked.

Original
Compressed preview
At quality 82 ·
Scope
functions.php

Only affects images uploaded AFTER the filter is active. Existing images keep the quality they were encoded at until you regenerate them. And note the preview above is your browser's JPEG encoder, not your server's — the artefacts are representative, the byte counts are not.

關於JPEG Quality Filter

Every JPEG you upload is re-encoded at quality 82 by default. That is fine for photos and visibly bad for screenshots and flat graphics. This generates the filter to change it, with a live preview of what each quality level costs.

FAQ

常見問題

WordPress 預設使用的 JPEG 品質是多少?

82。你上傳的每一張 JPEG 都會以那個品質重新編碼,WordPress 從中產生的每一個衍生尺寸也是。對照片來說這是個合理的預設值,但對螢幕截圖、logo 和平面圖形來說就明顯偏差——那些有硬邊,也沒有攝影雜訊可以用來藏壓縮瑕疵。

我該把 JPEG 品質設成 100 嗎?

不要。大約超過 92 之後,你買到的是檔案大小,而不是看得見的品質,而 100 可能讓檔案變成三倍,換來的差異卻沒人會注意到。如果你的圖片是螢幕截圖或 UI 圖形,88–92 是合理的範圍。

更改這個能修好我已經上傳過的圖片嗎?

不能。這個 filter 只套用在它生效之後處理的圖片。既有的圖片會保留它們當初被編碼的品質,直到你重新上傳,或用外掛、或用「wp media regenerate」重新產生縮圖為止。