Preview Save As TIFF Compression Options

Preview lets you save an image (e.g., RAW camera image file) as a TIFF file. You can save as No Compression, LZW Compression, JPEG Compression, and Packbits Compression. My expectation was that the compressed TIFF options would save a smaller file than an uncompressed file. I have tried each option, and Uncompressed, LZW, JPEG and Packbits all result in a TIFF file of exactly the same size. What is the purpose of these options if they don't save space? Seems very odd to me. (In my case, I started with a 43MB Sony .ARW file - and (all) the output TIFF files are 337MB in size.)


David

iMac, macOS High Sierra (10.13.6), 27 inch Retina i5 32GB

Posted on Aug 18, 2018 1:07 PM

Reply
13 replies

Aug 18, 2018 3:37 PM in response to dialabrain

I did the same with a Nikon NEF file:

User uploaded file


Sure got some wild results. I read an article several years ago comparing JPEG with TIFF and the author came to the conclusion that he couldn't see the difference until he went to print mural sized prints. For my work, even printing poster sized prints, JPEG is perfectly adequate, particularly with my eyes. 😟

Aug 18, 2018 3:42 PM in response to Old Toad

That is exactly what I did - I just started with a .ARW RAW file from a Sony A7RM3 camera (42Mpix). It may be that the RAW image can't be compressed for some reason. Starting from a JPEG (which already has lossy compression applied) may be different. It's pretty clear that TIFF (compressed or uncompressed) is not an efficient storage format for RAW files. I have photo editing software that can save the edited image in a TIFF file, but the only options they support are 8-bit vs. 16 bit color (16 bit much larger of course).


David

Aug 20, 2018 3:18 PM in response to dialabrain

It's normal for camera RAW images to be smaller than a TIFF written from that image. From my Nikon D800, a typical RAW image is about 48 MB. The uncompressed TIFF saved from that is about 105 MB.


If you want to get the size down, use LZW. It's lossless and saves quite a bit of space.


Using JPEG compression is the most pointless option for TIFF images I have ever seen. You are literally saving your image as a JPEG inside a TIFF wrapper. If you really want a JPEG, just save it as one to begin with.


JPEG is lossy, though. Even using the highest quality option, information is tossed. It's a very slight difference compared to an uncompressed image, but it's still a loss. Each time you open and save the file, you compound the loss. LZW can be opened and saved a zillion times, and the last will be the same as the first.


No idea what Packbits is. I've never used it (not even an option in Photoshop). As such, I have no idea of it's lossy or lossless.


That you are getting no size difference between an uncompressed and LZW TIFF out of Preview means Preview is doing something wrong.

Aug 20, 2018 3:14 PM in response to dialabrain

JPEGs are "lossy" - when you save as a JPEG, you throw away tons of information that was in that RAW image. Set your camera to RAW + JPEG and compare the size of the RAW and JPEG image files from the camera. If you wonder what is lost, then view the two images on a large, high resolution display - and zoom in and pixel peek. You will see the difference. Of course, if you printed the JPEG and the RAW saved as a TIFF, you would very likely not notice any quality difference in the two images. The JPEG compression algorithms have gotten so good that I just use the out-of-camera JPEGs most of the time. I only go to the RAW image - and post-process - when I have screwed up!


The motivation for my question was when I was using the Perfectly Clear processing software which outputs either TIFFs or JPEGs - but didn't apply any compression to the TIFFs. I knew this option to compress a TIFF was present in Preview, so tried it, and got no benefit. That was because I was starting with the RAW image with 16-bit color coding - and compression algorithms try to identify identical pixels which don't need to be saved - with 16-bit coding, there are very few or no identical pixels.


I am hopeful that the HEIF coding standard (that Apple uses now for the iPhone cameras) will become a standard - it is a much more efficient compression algorithm than the JPEG process. Camera companies, however, are pretty conservative about these things - and they like proprietary RAW formats. They even change the format across camera models. (The RAW format for the Sony A7Rm2 and the A7Rm3 are different.)


I am satisfied that this is correct explanation for the compression failure for TIFFs.


David

Aug 20, 2018 4:04 PM in response to dialabrain

Well, on my A7RM3, Sony offers both compressed and uncompressed RAW formats. The default is the compressed RAW format, but if you want 80MB RAW files you can choose the uncompressed option. You really have to pixel peek to see any difference. I think Nikon and Canon use lossless compression for their RAW. I wish Sony would get with it and do the same.


David

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Preview Save As TIFF Compression Options

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.