0
\$\begingroup\$

I've been viewing, editing, and storing digital images since before digital cameras were common -- I've used GIF, JPEG, TIFF, PNG, and a few other now-obsolete formats.

GIF has been mainly relegated to animated images, because nearly any other compressed format produces smaller files (but only GIF has the ability to display multiple frames sequentially, even loop the display, built into the format spec). TIFF is mainly used for images to be stored in documents like PDF or word processor files, and PNG is the "new kid on the block" with exceptionally high efficiency and lossless compression (at least up to some point).

So, PNG is clearly superior to JPEG, both in terms of preserving image quality, and in actual compression level -- yet digital cameras seem to either save only in JPEG or give a choice of some uncompressed RAW format, with or without simultaneous JPEG.

Why haven't cameras adopted the superior PNG compression technology, which would fit more, higher quality images on a memory card and largely (if not completely) eliminate the need for dual-format storage?

\$\endgroup\$
8
  • \$\begingroup\$ Phones have gone HEIC, skipping png entirely. Cameras might catch up in the next decade or so ;) \$\endgroup\$
    – Tetsujin
    Commented Jul 28, 2021 at 18:00
  • 1
    \$\begingroup\$ Well, that was educational -- apparently Canon and Sony have already put HEIC in their newer offerings. \$\endgroup\$
    – Zeiss Ikon
    Commented Jul 28, 2021 at 18:05
  • 1
    \$\begingroup\$ PNG is OK when there are uniform areas, but it cannot compress your random photography. Even an image like this with vast expenses of blue sky is bigger as a PNG (28.1MB) that as the original raw CR2 (20.7MB). In addition the PNG compression algorithm is very CPU intensive (much more than JPEG), so difficult to put in a camera.... The only good contender to JPEG would be WebP, but support isn't universal. \$\endgroup\$
    – xenoid
    Commented Jul 28, 2021 at 19:38
  • 1
    \$\begingroup\$ @xiota ftp-osl.osuosl.org/pub/libpng/documents/… \$\endgroup\$
    – xenoid
    Commented Jul 28, 2021 at 21:30
  • 1
    \$\begingroup\$ @xiota Yes, and EXIF data and "progressive" JPEG used to be an extension to JPG (many LCD photo frames still don't recognize progressive JPEG, despite it being over 10 years old), and animation and multiple colormap are extensions to the original GIF format. Formats evolve. The 2017 spec includes an eXIF block, so EXIF data is now in the PNG standard. PNG is still a bad choice, but the reasons are not the same. \$\endgroup\$
    – xenoid
    Commented Jul 28, 2021 at 22:29

1 Answer 1

0
\$\begingroup\$

Simple answer - offering more options requires more code in the camera firmware, which takes more space, introduces more complexity, and provides more opportunity for bugs. Now, it might make sense (someday) to offer a lossy-compressed option in place of JPG, or even a lossless-compressed option like TIFF or PNG as a third option (in addition to RAW), but I don't think you'll ever see a camera offering the same number of options that something like Photoshop or The Gimp do...

\$\endgroup\$
11
  • \$\begingroup\$ Actually, I was thinking a lossless compression like PNG could replace both RAW and JPEG -- debug once, and done (and there are PNG compression algorithms literally everywhere). \$\endgroup\$
    – Zeiss Ikon
    Commented Jul 28, 2021 at 17:58
  • \$\begingroup\$ @ZeissIkon JPEG stands for Joint Photographic Experts Group. It was designed to work end to end across cameras, scanners, displays and printers. The people involved were experts, but if you call them jpgs it is less explicit. There is also JPEG 2000 but almost nothing supports it. \$\endgroup\$ Commented Jul 28, 2021 at 20:14
  • \$\begingroup\$ @BobMacaroniMcStevens JPGs is often used as shorthand for JPG files. The JPG portion is a reference to the file extension. The other JPEG formats use different file extensions. \$\endgroup\$
    – xiota
    Commented Jul 28, 2021 at 21:11
  • \$\begingroup\$ @xiota Expertise is why cameras encode pictures using JPEG standards in files. JPG is common because of the nnnnnnnn.eee naming limitations of some file systems, in particular MS DOS and compatible file systems like FAT commonly used by early removable media. \$\endgroup\$ Commented Jul 28, 2021 at 22:02
  • \$\begingroup\$ @BobMacaroniMcStevens "Expertise" is not why cameras encode pictures using ISO 10918. Other "JPEG standards" (like JPEG XR, JPEG 2000) were basically market failures. File extensions have been, and continue to be, used in file systems that did not, and do not, have the naming restrictions you refer to. \$\endgroup\$
    – xiota
    Commented Jul 28, 2021 at 22:22

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