41

Is there a reason for iPhone to save screenshots taken as .PNG instead of .JPG?

Screenshots won't have transparent background anyways.

1

3 Answers 3

63

PNG is not only useful for allowing transparency: PNG is a lossless format, while JPEG uses a lossy form of compression. Also PNG does compress screenshots pretty well (unlike camera photos, which is why Apple uses JPG for those).


More info if interested:

enter image description here

Also, A technical overview of what PNG is good for is worth reading (it's basically one of the main references on the topic and contains enough details to spend the day on it). Excerpt:

For the Web, as of early 1999, there are two image formats with ubiquitous support: JPEG and GIF. JPEG is very well suited to the task for which it was designed--namely, the storage, transmission, and display of photorealistic 8-bit grayscale and 24-bit truecolor images with good quality and excellent compression--and PNG was never intended to compete with JPEG on its own terms. But PNG, like GIF, is more appropriate than JPEG for images with few colors or with lots of sharp edges, such as cartoons or bitmapped text. PNG also provides direct support for gamma correction (loosely speaking, the cross-platform control of image ``brightness'') and transparency. I'll discuss these in more detail shortly.

GIF was the original cross-platform image format for the Web, and it is still a good choice in many respects. But PNG was specifically designed to replace GIF, and it has three main advantages over the older format: alpha channels (variable transparency), gamma correction, and two-dimensional interlacing (a method of displaying images at progressively higher levels of detail). PNG also compresses better than GIF in almost every case, but the difference is generally only around 5% to 25%, which is (usually) not a large enough factor to encourage one to switch on that basis alone. One GIF feature that PNG does not try to reproduce is multiple-image support, especially animations; PNG was and is intended to be a single-image format only. A very PNG-like extension format called MNG has been developed to address this limitation.

4
  • @Franck, Citation needed for "PNG was specifically designed to replace GIF",
    – Pacerier
    Aug 19, 2015 at 22:48
  • @Pacerier Hmm the quote comes from libpng.org , isn't it authoritative enough? Aug 19, 2015 at 22:51
  • @FranckDernoncourt, PNG was specifically designed to replace GIF due to patent issues, not compression/image quality as the context of your answer so suggests.
    – Pacerier
    Aug 19, 2015 at 23:14
  • @Pacerier WP also says "There were also other problems with the GIF format that made a replacement desirable, notably its limit of 256 colors at a time when computers able to display far more than 256 colors were becoming common.". But I'm not familiar with the story, I don't know what factor was the driving motivation. Feel free to amend my answer. Thanks for the information! Aug 19, 2015 at 23:25
49

Because this:

PNG screenshot

looks a lot better than this:

JPEG screenshot

OK, so I had to crank the JPEG compression quality way down to make the compression artifacts that obvious, but the point remains — a PNG screenshot shows exactly what you see on the screen, whereas a JPEG screenshot is always a little bit lossy (yes, even if you crank the quality up to 100).

Besides, PNG tends to be pretty good at compressing images with large areas of flat color, sharp edges and repetitive patterns (like text). Thus, in many cases, a lossless PNG screenshot can actually be smaller than a JPEG screenshot saved at any acceptable quality level.

0
10

One of the functions of a screenshot is to show someone else a particular visual artifact you're seeing on your device -- perhaps to show a visual glitch to an app developer. In such cases, any compression artifacts could be a distraction from the actual issue under discussion; the screenshot needs to be pixel-perfect.

Thus, a lossless format like .PNG is mandatory.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .