處理透明背景圖片的注意事項(PNG 轉 JPG)
- JPG 不支援透明,所以會被填成白色
- 保持 PNG 以保留透明
- 非白色背景需要另外編輯
When you convert an image with a transparent background, such as a logo or an illustration, to JPG, the background turns white. The look can change unintentionally, so here are the points to note. This explains how to handle it in Convert Image Format (JPG, PNG, WebP).
What transparency is
A transparent background means the "empty" part of the image shows whatever colour is underneath. A logo can be laid naturally over a website's background colour or a slide's colour. PNG and WebP can keep this transparency, but JPG cannot.
What happens when you convert
- PNG to JPG: transparent areas become white.
- PNG to WebP: transparency is kept (in a browser that can create WebP).
- JPG to PNG: it was never transparent, so a white background stays white.
步驟
- With "Choose images", select the image.
- To keep transparency, set "Output format" to PNG. With JPG, the background becomes white.
- Press "Convert" and check the result.
When unsure about using JPG
- Placing it on a white background: JPG is fine.
- Laying it over a coloured background or a photo: keep it as PNG.
- A form that accepts only JPG: check that submitting it with a white background is acceptable.
When you want another background colour
Converting to JPG makes it white. To use another colour, add the background colour in an image editor first, then convert.
Common stumbling blocks
- A white box appeared after conversion: transparency was replaced with white.
- The edges look jagged: laying a transparent image over another background can show a boundary.
- The file is too heavy: if you do not need transparency, JPG makes it lighter.
Frequently asked questions
Can I restore transparency later?
Not after converting to JPG. Keep the original PNG.
Is semi-transparency kept?
In PNG, yes. In JPG, it is mixed with white.
小結
To keep transparency, use PNG. With JPG the background becomes white. Check the background where it will be used before converting.
使用「轉換圖片格式(JPG、PNG、WebP)」(免費)搭配使用的工具
- HEIC 轉 JPG:把 iPhone 的 HEIC 照片轉換為 JPG 或 PNG。
- 壓縮與調整圖片大小:讓圖片檔案變小,也可以縮小尺寸。
- 裁剪與旋轉圖片:將圖片裁剪到任意區域或比例,並可旋轉。