7
\$\begingroup\$

Why do many DSLRs have the option to save in RAW or JPEG but not in TIFF? It would be useful to save it as a TIFF file using lossless compression. It would be a midway between RAW and JPEG. Is it because the size of TIFF files is huge?

\$\endgroup\$
6
  • 2
    \$\begingroup\$ Whats the use case? Where would you want to deal with TIFF straight out of the camera vs one of the other two? \$\endgroup\$
    – rfusca
    Commented May 10, 2012 at 14:43
  • \$\begingroup\$ I'm wondering why did the camera manufactures chose JPEGS instead of other formats; specially TIFF since it can be lossless and you can use it to preview the photos (without having to apply transformation to the RAW). It'll also allow you to change WB without degrading the image quality. But in the same time it's not the sensor's information, so it's kind of midway between RAW & JPEGS. It certainly outperforms JPEGS so why not using it? And this is based on my understanding for the TIFF format, perhaps I'm wrong so feel free to correct me \$\endgroup\$
    – K''
    Commented May 10, 2012 at 14:48
  • 1
    \$\begingroup\$ Many mid level and up Nikon DSLRs do have the option to save as TIFF... \$\endgroup\$
    – nwcs
    Commented May 10, 2012 at 14:53
  • \$\begingroup\$ Same with Pentax and Olympus. \$\endgroup\$
    – mattdm
    Commented May 10, 2012 at 15:36
  • 1
    \$\begingroup\$ @akram - why manufacturers standardised on jpeg would make an excellent question on it's own. The short version is that it offered a good size reduction with an acceptable quality loss without needing too much processing when they were debating what formats to use - it was a bit of a no brainer at the time. \$\endgroup\$ Commented Jun 24, 2014 at 18:51

6 Answers 6

14
\$\begingroup\$

Noting other answers, and having had a bridge camera that did TIFFs, I'd suggest that for DSLRs TIFF is pointless except as an add on if it can be managed.

TIFF is a lossless way of saving an image, once an image is generated, BUT the image that it saves is an interpretation of what the sensor records.

RAW gives you the maximum possible flexibility in dealing with the available data. Software to convert to TIFF or JPG is provided by the camera maker plus the various commercial RAW converters are a small fraction of a good DSLR price.

JPG gives you user usable images at a compression level that suits the user.

RAW + JPG gives you all the advantages of RAW plus some of the advantages of JPG (as it usually does not allow selection of JPG compression level and the JPG provided may be not be the highest quality JPG the camera provides in pure JPG mode.
eg in a Sony A700, straight JPG comes in Extra Fine, Fine, Standard.
But with RAW + JPG, the provided JPG is "fine" and not "Extra Fine".

TIFF loses data relative to RAW and is far larger than any sensible JPG and has no great quality improvement over the best JPG. Once it is "not RAW" then it is subject to manufacturers decisions.

Useful where available is Compressed-RAW and Compressed RAW + JPG.
Available eg on Sony A700 but not on the newer A77 where it would be useful due to largr file sizes.
Compressed-RAW provides a lossless compression of the RAW file at the expense of processing time and a somewhat non-stanard format.

\$\endgroup\$
3
  • \$\begingroup\$ I agree that TIFF doesn't outperform high quality JPEG but it certainly more flexible than JPEG in post processing \$\endgroup\$
    – K''
    Commented May 11, 2012 at 2:34
  • 4
    \$\begingroup\$ @Akram If you processing your images to the extent that flaws in the JPEG are showing up then you really should be shooting RAW in the first place! \$\endgroup\$
    – Matt Grum
    Commented May 11, 2012 at 12:43
  • \$\begingroup\$ @MattGrum yeah you're right \$\endgroup\$
    – K''
    Commented May 11, 2012 at 13:40
5
\$\begingroup\$

They do actually but not all of them. Even some bridge cameras can save as TIFF.

Unfortunately, TIFF was given a bad name because its files were huge. Early on, compression was not used for TIFF files by digital cameras and so that gave rise to the files being huge which also slowed down the camera considerably. One of my first cameras used to take 24s to save a single TIFF file.

You are right that it would be highly desirable to have a complete image out of the camera (rather than RAW data) but without compression loss and--equally important in my opinion--higher color-depth and dynamic-range than JPEG can store.

In reality any high-bit-depth file-format could do but camera makers do not see it as important yet. This will probably come as displays start showing more than 8-bits per channel and operating system support becomes more common (this exists already but in very limited numbers at this time).

\$\endgroup\$
3
\$\begingroup\$

I own an Olympus Camera that has the three options you mention. Tiff files generated by the camera where somehow more than twice as big as the raw files.

My speculation here is that the RAW file, as it holds almost exclusively the information from the sensor has by nature less information to compress. That is, if the sensor where, say 10 bits per photosite, the RAW file would contain only this, arranged in a way that the conversion software will later decode knowing to which color channel each photosite corresponds.

To compose the TIFF file, the camera needs to calculate a pixel from several photosites, taking to account that some algorithms use a photosite several times to compute adjacent pixels. A pixel must be completed with its three channel values, if a 16 bit color depth image need to be encoded, you need tree values held by 16 bits each, thus you need 48 bits per pixel in the final image. Compare that to the 10 bits per photosite in the hypothetical sensor mentioned before.

\$\endgroup\$
3
\$\begingroup\$
  1. Difference of file size between a lossless TIFF and RAW is not huge.
  2. More time is needed to save a tiff than a raw, so to avoid delay in shots.

Jpg will also take more time due to the processing, but will have a significant file size reduction, hence jpg was used.

\$\endgroup\$
1
  • 4
    \$\begingroup\$ On modern hardware, JPEG is usually faster than RAW, because CPUs are faster than I/O to flash memory. \$\endgroup\$
    – Flimzy
    Commented May 11, 2012 at 1:37
3
\$\begingroup\$

RAW files are better than TIFFs in almost every respect:

  • RAW files are smaller (as only one colour component per pixel is stored)
  • RAW files capture more data
  • RAW can be totally lossless (TIFFs don't lose data in compression but do in demosaicing)

The only disadvantage is the need to demosaic and process the images before they can be viewed. Which is where JPEG comes in. JPEGs are better than TIFFs in a number of respects:

  • JPEG files are smaller
  • There are lots of very cheap chips that do hardware JPEG compression. TIFF compression is marred with patent claims and doesn't to the best of my knowledge have the same hardware support.
  • JPEG files offer almost the same level of quality, unless you push the files around in post, in which case you really really should be shooting RAW.

So this is why camera manufacturers mostly offer RAW + JPEG. It used to be the case that older bridge and compact cameras offered TIFF files, but this was before RAW conversion software was popular and most people lacked the ability to do the conversion, hence TIFF was offered if you really needed to avoid image compression artefacts.

\$\endgroup\$
-2
\$\begingroup\$

Boy, I can not believe the amount of disinformation there is about .tiffs! Basically, a .tiff file is an uncompressed jpeg. Similar to a jpeg, it lets the camera set the contrast, white balance, etc. for your picture (which you have pre-set in the camera for the situation you are photographing). If you're using camera-specific software when processing raw files, the quality is probably no different after processing than if you made the same settings in-camera and saved as a .tiff.

There are camera models such as the Nikon D300s, that allow you to shoot native .tiff in the camera. If you can set the camera to make an excellent photo, much like a photographer in the past shooting a transparency, then by all means shoot it as .tiff! Camera RAW, does have all the information saved, and then you can go in and modify that, so you can set contrast, density, color, etc., then save as a .tiff for the highest quality file to send to ad agencies or printers.

BUT if you can set that in the camera, and would have been happy with a jpeg version, all the .tiff file is, is an uncompressed version of that.

In addition, .tiff is a lossless file format. If you shoot .tiff and need to get in and change the color a little, or density, or contrast, no problem, you can resave it with no loss. If you need to get in and change it a lot, RAW is better, but maybe you shouldn't be a photographer if you're that far off!

\$\endgroup\$
3
  • \$\begingroup\$ A .tiff can be losslessly compressed, but it can also use lossy JPEG compression. en.wikipedia.org/wiki/Tagged_Image_File_Format#Flexible_options \$\endgroup\$ Commented Jun 24, 2014 at 18:45
  • \$\begingroup\$ It can be 'group 3 fax' too IIRC which makes jpeg look highly desirable in image quality terms... \$\endgroup\$ Commented Jun 24, 2014 at 19:02
  • \$\begingroup\$ Your last assertion is not correct. Every time you make a change and save a TIFF file, you lose information. Not through compression, if you are saving as lossless TIFF, but through changes to exposure, color, contrast etc. which irreversibly change pixels. You can't undo those changes like you can in RAW. \$\endgroup\$
    – MikeW
    Commented Jun 24, 2014 at 19:26

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.