Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I prefer PNG format to JPG, because JPG uses lossy compression.

When I capture a screen in my PC or scan a picture or document in my scanner, I always save them as PNG format.
If a camera could save its data as PNG format, I'd use the feature even if I needed to buy more memory cards.

But I haven't see any camera that does. Why not? Why don't most (or any) cameras support PNG format?

P.S My camera doesn't support RAW.

share|improve this question
Many support TIFF, which also supported lossless compression. But then the question becomes "Why don't most web browsers support TIFF?" – mattdm May 5 '11 at 11:14
You prefer PNG to JPG for photography? I have not seen an argument for that before. – dpollitt May 5 '11 at 13:27
Its kindof ironic that the link you give uses png as an examply of lossy compression :) – Toby Allen May 5 '11 at 17:27
@JZL While PNG supports color palettes (indexed color), it does not require them. I'm sure we're talking about good old 24- or 48-bit RGB color here. GIF, on the other hand, only supported indexed color and was limited to 256 colors in the palette. – coneslayer May 5 '11 at 19:45
@Pacerier Most of them. Rather than listing, check out this table on wikipedia. – mattdm Aug 19 '15 at 23:13
up vote 57 down vote accepted

The JPEG format has the advantage of giving small files. The RAW formats have the advantage of preserving all the data collected at the shot.

The PNG format gives neither of these advantages, so you don't even get a compromise between the other formats, you get almost only the drawbacks from both formats.

share|improve this answer
One point to note here, there is no "the RAW format". So if Benjamin wished for a standard, he would have to convert his RAW to DNG. – Leonidas May 5 '11 at 14:31
Yes, RAW just means the cameras internal format, and varies from camera to camera. I recently used a camera whose raw format involved two bytes per pixel and several thousand extra header/footer bytes (ugh). – John Robertson May 5 '11 at 16:20
I'd tend to agree with Leonidas here. The real issue is that DNG is not adopted by more camera makers. As photographers, we own our negatives, but our digital negatives are locked up in proprietary file formats, often with details concealed under NDA. Adoption of DNG by either Canon or Nikon would go a long way toward solving that. It won't happen, though. – RBerteig May 5 '11 at 18:20
@John, using 2 bytes/pixel is abnormal? How else would you fit the 12 or 14-bit value the sensor provides for each pixel? You could do a little compression afterwards, but for a bunch of more-or-less random data it may not even be worth it. – Nick T May 6 '11 at 0:22
@John Robertson: Most chips only record one color per pixel, not three, so 14 bit RAW corresponds to 42 bit RGB, after two color components per pixel has been interpolated from surrounding pixels. – Guffa May 6 '11 at 16:48

Image size notes aside, a big reason is that PNG does not have a standardized means of EXIF embedding and that will immediately shy the camera makers away from it. There would be a lot of information lost by doing image conversion to PNG in camera as a result and, for the most part, would probably been seen as a negative by most photographers.

share|improve this answer
+1 Never realized that there was no standardized EXIF embedding for PNG. Good to know. – coneslayer May 5 '11 at 13:43
Most likely reason. Metadata is nice. – Leonidas May 5 '11 at 13:54
Wiki: iTXt contains UTF-8 text, compressed or not, with an optional language tag. iTXt chunk with the keyword 'XML:com.adobe.xmp' can contain Extensible Metadata Platform (XMP). – Kevin Peno May 5 '11 at 15:38
Lack of EXIF data would be "seen as a negative" by photographers? Bah! These young digital photographer whipper-snappers! In my day, photographers used film and knew what a negative really looked like! :-) – Oddthinking May 5 '11 at 16:25
@Oddthinking At least the negative had a little metadata at the edges! – coneslayer May 5 '11 at 16:41

PNG may use a lossless compression algorithm, but it is lossy in comparison to the raw data. You lose bit depth, the camera may introduce demosaicing artifacts, you may bake in a bad color balance, the camera may apply inappropriate sharpening, the in-camera noise reduction may wash out detail, etc. I don't think there's a big demand for a format that's as large as raw, but less amenable to postprocessing.

share|improve this answer
The .png would almost certainly be bigger than the raw as the png would have to store three colour values per pixel instead of one raw sample, so for an 8bit png that's 24 bits per pixel vs. 12 or 14 bpp for the raw. – Matt Grum May 5 '11 at 13:12
@John But it is worse than raw, which is what you should be using for editing. PNG just seems like an unhappy medium between JPEG and raw. – coneslayer May 5 '11 at 13:31
@Matt As the PNG does use compression (too), the result does not have to be bigger at all (depends on algorithms). To put it to you in a question: if you convert an ASCII-file (8 bit per character) to a UTF16-file, should a compressed result become significantly bigger? If you answer that with "yes", please re-read compression-algorithms. – Leonidas May 5 '11 at 13:42
@Leonidas You are correct, but I would expect that anyone asking for PNG output (instead of raw) will expect the result to be immediately usable out of camera, which means you want things like sharpening to mitigate the antialiasing filter and probably noise reduction. Not technically necessary, but if your PNG files require further editing, then, again, I don't see the benefit over raw. – coneslayer May 5 '11 at 13:53
@coneslayer I guess that Benjanmin has the same problem I had/have when reworking pictures: (1) JPG already lost some picture data and (2a) RAW is proprietary (software only available now for some time), (2b) not every camera offers RAW. Several years ago I too desperately wished for TIFF or PNG in my compact. – Leonidas May 5 '11 at 13:59

Shoot RAW, develop to a PNG file (if the software allows).

share|improve this answer

PNG is portable network graphics. It is targetted for the web, and rather simple (in colors) images. Its compression is very ineffective for realistic graphics as you will shoot with a camera, so the results are nearly uncompressed. As such you can then simply use RAW files, which do add the benefit, that there is no lossy conversion to an RGB colorspace.

The reason JPEG is used is simply that its compression is very good and works very well with more realistic graphics where individual artifacts are invisible to the human eye. In addition JPEG is supported by nearly any device and offers many way to add additional metadata, including color profiles.

No single RGB file format is able to store the image exactly as the camera sensor sees it; there is always some kind of loss in that conversion. As such it makes sense to use a format that has good compression which doesn't really harm the picture in total. If you are looking for a real lossless format, the camera's RAW is the only direction you can go, from which you then can create whatever file you desire.

share|improve this answer
Lossy conversion to the RGB colourspace? How so? What do you exactly loose while converting Bayer-sensor-data (additive data) to one form of the RGB-versions? (Btw: PNG does offer ICC-profiles in principle too, FF plans to support it, I read.) – Leonidas May 5 '11 at 16:46
@Leonidas: There is no “the” RGB colorspace. The camera collects much more information than what is interpretable by any RGB colorspace (sRGB, Adobe RGB etc.). As such when the conversion is done to an RGB file, there is always some information/colors lost. The only way to preserve that is by saving the data the way the camera sees it, i.e. the RAW. – poke May 5 '11 at 16:50
@poke Can you explain how a typical RGGB-sensor produces data which can't be converted lossless in any RGB-format? (I'm aware that there are multiple, note "one form of the RGB-versions".) – Leonidas May 5 '11 at 17:02
@Leonidas: I can be wrong with it, and if you know better (or are tricking me to say something wrong here), please correct me, but given that the sensor doesn't separate the light it sees into 256 steps for each color, I don't think that any normal RGB file format or RGB colorspace is able to contain all that information. I'm aware that the sensor does capture the data as RGB information, so in theory there could be a RGB colorspace if there was one that could hold as much information as the image actually contains. – poke May 5 '11 at 17:27
@poke No trick here, I just seriously doubt that there won't be any RGB format offering the gamut of the sensor. Concerning the discrimination - I think that 16 bit/channel-formats offer enough room to receive it. For example in… jrista mentions a demosaicing called Bayer Drizzle that really seems to be engineered to keep any data available. – Leonidas May 5 '11 at 17:35

Both formats have their Pros and Cons.

But the real reason why JPEG is more prevalent than PNG is that the people behind JPEG do aggressive licensing, which PNG lacks. (

This is very similar to MP3 vs. OGG vs. FLAC. MP3 Creators licensed aggressively in the beginning... leading to the popularity. Due to this, now, manufacturers approach MP3 to get licenses!

share|improve this answer

IMO you should always shoot in RAW, if you are not worried about memory costs RAW is the way to go. This gives you the best opportunity to correct images in post processing.

Below is a quote from:

PNG is absolutely wonderful for storing true 24-bit color images. Processing PNG files is very simple and requires no application-specific fields. However, it is computationally expensive, lacks the ability to store multiple images, and does not have many standardized text fields for managing meta data.

JPEG is a wasteful file format filled with specialized fields. It is also a poor choice for true color representation. However, it is computationally inexpensive, supports multiple image storage, and scaling images is trivial. And sadly, it widely accepted as the de facto standard.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.