WordPress Image Size Lab
Drop an image in. See every copy WordPress will make of it.
在你的瀏覽器裡執行。什麼都不會被上傳。
Drop an image here
or click to choose one
Your file is read in your browser and never uploaded. There is no size limit and no daily quota, because there is no server to pay for.
關於WordPress Image Size Lab
Upload an image and see every derivative WordPress will actually generate — thumbnail, medium, large, 1536, 2048, and the -scaled copy — at real dimensions with real crop boxes. Then download the set, or copy the add_image_size() code to change it.
FAQ
常見問題
WordPress 實際上會建立哪些圖片尺寸?
在原始安裝上有六種:thumbnail(150×150,強制裁切)、medium(300×300)、medium_large(768w)、large(1024×1024)、1536×1536 和 2048×2048。如果你的圖片超過 2560px,還會多一份「-scaled」副本。每個外掛和佈景主題都可以再註冊更多——WooCommerce 就加了三種。
為什麼我的圖片上傳到 WordPress 之後很模糊?
幾乎一定是「-scaled」的行為。自 5.3 起,WordPress 會把任何最長邊超過 2560px 的上傳圖片縮小,並提供那份副本,而不是你的原圖。你的原圖仍在伺服器上;只是永遠不會被用到。把你的圖片丟進上面的工具,它就會告訴你這是不是發生在你身上。
這個工具顯示的檔案大小準確嗎?
尺寸和裁切框是精確的——它們來自 WordPress 所用的同一套規則。檔案大小則是「估計值」:你的瀏覽器用的不是和你伺服器一樣的 JPEG 編碼器(WordPress 用的是 GD 或 Imagick,並以品質 82 重新編碼),所以真實檔案會有出入。我們寧願直說,也不要悄悄往對自己有利的方向四捨五入。