Pasted images typically come across as raw bitmaps, so saving them all as PNG (lossless) would be hugely wasteful in file size. Instead we test saving in both formats and see which results in a “reasonable” size, so (most) images end up efficiently stored as JPGs (lossy).
codinghorror
(Jeff Atwood)
4
Related topics
| 글 | 댓글 | 조회수 | 활동 | |
|---|---|---|---|---|
| Why default to converting PNG to JPG? | 22 | 4503 | 8월 7, 2025 | |
| PNG converted to JPG? :( | 2 | 2194 | 11월 20, 2017 | |
| Png converts to Jpg no matter what! | 12 | 1450 | 3월 17, 2021 | |
| Very small PNGs are inappropriately converted to JPGs | 22 | 2172 | 11월 23, 2018 | |
| PNG with transparency getting converted to JPG after uploads | 7 | 1870 | 4월 5, 2022 |