JPG files use 8 bits per color per pixel (I've never heard of any camera that uses the alleged 12-bit-per-color-per-pixel extension) and is a compact way of storing images.

RAW files are huge but have the full image data from the image sensor which is likely to be more than 8 bits. (judging from recent DSP specs I would assume 12 bit ADCs are the norm... but how would you actually find out how many bits a particular camera provides?)

Is there anything similar to JPG which stores the file in a form that allows lossy compression for high spatial frequencies, but has more dynamic range than 8 bits?

  • 2
    \$\begingroup\$ Are you planning on posting these images online afterwards or is this just for storage? \$\endgroup\$
    – Joanne C
    Sep 14, 2010 at 0:38
  • \$\begingroup\$ Camera bit depth varies by model and even option - from memory some Nikons (and therefore likely Sonys, given they use Sony sensors) can record 12 or 14 bit data as selected. It'll be on spec sheets though - DPReview should list it in reviews. \$\endgroup\$
    – eftpotrm
    Aug 11, 2016 at 16:54
  • 1
    \$\begingroup\$ @eftpotm, your comment might be better as an answer (short answers are ok). Comments are ephemeral and easily deleted. See meta: Short answers as comments — please resist the urge \$\endgroup\$
    – inkista
    Aug 11, 2016 at 17:51

2 Answers 2


It's going to be difficult to answer your question without knowing in what simalarities do you wish your image format to share with Jpeg?

Compression Ratios? Universal Support on the web? Camera support?

JPEG2000 has support for 48-bit depths (though in practice only 24 are common). It also supports both lossy and lossless compression, so you can tailor your size savings.

DNG is widely used as a lossless format (there IS lossy compression support), but does offer roughly 40% size savings because of lossless compression, allowing you to get better size management, while still maintaining most of the qualities of a RAW image.

PNG is also lossless, but has more universal support on the web, and up to 16bits per channel color depth.

By and large however, RAW/DNG are kept/edited, while JPEG is used for web.

  • \$\begingroup\$ Isn't DNG a kind of RAW format? As such I assume that it actually has the same qualities as a RAW image. Otherwise a good answer (upvoted it). \$\endgroup\$ Jan 18, 2012 at 7:04
  • \$\begingroup\$ @johan-karlsson: DNG is a file format which stores raw data (and something more). "RAW" was a common extension for files storing raw data but does not denote any specific format. \$\endgroup\$ Aug 11, 2016 at 16:45

Also note that DNG can store RGB pixels, not just raw sensor data. There is a "Linear DNG" variation that can store a demosaiced RGB image data arranged in a rectilinear format. It is supported by Lightroom and is used for cameras with Foveon sensors for example. You can select your JPEG files in Lightroom, export them as DNG, and re-import them. However, you do not increase the quality of your JPEG file by converting it to Linear DNG. Everything you can do with a Linear DNG you can already do with a JPEG file in the Lightroom UI. See "Should I convert my JPEG images to DNG in Lightroom 3?"

The problem is, you don't really have much choice. Your camera either outputs JPEG, or RAW/DNG. At this point, if you are using a non-destructive workflow (Lightroom, Aperture), you might as well stick to JPEG because the pixels in your file are not affected/degraded. RAW will provide greater bit-depth and a lot more flexibility in the same workflow.

How would you actually find out how many bits a particular camera provides? This is usually listed in your manual or in the camera specs online (typically review site).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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