Ugly Hedgehog - Photography Forum
Home Active Topics Newest Pictures Search Login Register
Main Photography Discussion
Editing a 16-bit Grayscale TIFF
Apr 30, 2021 10:40:40   #
selmslie Loc: Fernandina Beach, FL, USA
 
Some editors insist on a 48-bit color image, even if you have converted your image to B&W. Since all three color channels contain the same information this seems to be a waste of space. But if your editor can support a 16-bit grayscale you can save some of that space.

The attached image was taken as a 3436x2648 Dx crop (10.4 MP) on a 24 MP sensor and developed from raw. If you click the Download link it may download to you computer rather than opening the image in your browser.

Format MB
raw (ARW) 10.4
DNG 11.5
48-BIT TIFF 30.6
16-bit TIFF(1) 20.4
16-bit TIFF(2) 17.9
8-bit TIFF 10.2
best JPEG 4.3

(1) from Picture Window Pro
(2) from Affinity

At 10.4 MP you might expect that the TIFF would have a minimum size of 20.8 MP. I cannot account for the missing bytes.

I used this crop so that I could actually post the 16-bit TIFF here.

16-bit grayscale image
16-bit grayscale image...
(Download)

Reply
Apr 30, 2021 11:44:15   #
rmcgarry331
 
Tiff file size for 16 bit grayscale 3436x2648x2= 18,197,056 bytes, or 17.77 mb. It is likely LZW compression is turned on, which would compress the file down to 17.51 mb.

Reply
Apr 30, 2021 12:00:20   #
selmslie Loc: Fernandina Beach, FL, USA
 
rmcgarry331 wrote:
Tiff file size for 16 bit grayscale 3436x2648x2= 18,197,056 bytes, or 17.77 mb. It is likely LZW compression is turned on, which would compress the file down to 17.51 mb.

Thanks for the info. I guess PWP compressed it some and Affinity compressed it again.

I'll try to see if I can set it to no compression although it doesn't seem to have lost anything.

Reply
 
 
Apr 30, 2021 16:16:29   #
selmslie Loc: Fernandina Beach, FL, USA
 
rmcgarry331 wrote:
Tiff file size for 16 bit grayscale 3436x2648x2= 18,197,056 bytes, or 17.77 mb. It is likely LZW compression is turned on, which would compress the file down to 17.51 mb.

After looking at it again the numbers are slightly different. I changed the values to kilobytes to be more precise.

Format KB
raw (ARW) 10,848
DNG 11,513
48-BIT TIFF 61,130
16-bit TIFF(1) 20,418
16-bit TIFF(2) 17,948
8-bit TIFF 10,239
24-bit JPEG (1) 5,288
24-bit JPEG (2) 5,322

(1) from Picture Window Pro
(2) from Affinity

The 48-bit tiff is 3x as large as the 16-bit version as expected. I don't recall where the other number came from because I erased the first results and did it all over.

Neither PWP not Affinity refer to LZW compression explicitly but it's clear that Affinity is doing more compression than PWP.

With PS Elements I could specify whether to use no compression or LZW compression. With no compression the file size is about the same as the PWP result.

Reply
If you want to reply, then register here. Registration is free and your account is created instantly, so you can post right away.
Main Photography Discussion
UglyHedgehog.com - Forum
Copyright 2011-2024 Ugly Hedgehog, Inc.