Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
Thread started 09 Oct 2012 (Tuesday) 15:45
Search threadPrev/next
sponsored links (only for non-logged)

Why are my Tiff files so huge?

 
guitarjeff
Senior Member
674 posts
Likes: 10
Joined Feb 2012
     
Oct 09, 2012 15:45 |  #1

I thought raw was uncompressed, full info, how can that be because when I save to a Tiff from Lightroom the files are absolutely huge, like 40 MB or something. What is Tiff adding to these pics to make the files so big?




  
  LOG IN TO REPLY
Stone ­ 13
Goldmember
Avatar
1,690 posts
Likes: 8
Joined Aug 2009
Location: Huntersville, NC
     
Oct 09, 2012 15:58 |  #2

tiff is a natively uncompressed file format, raw files are compressed. However, tiffs can also be compressed with either Zip or LZW compression.


Ken
Fujifilm X100T | 5D III gripped |35L | 24-70 2.8L II | 70-200 2.8L IS II | 85 1.8 | 430 EX II | Yongnuo YN-568EX | Billingham 445 | Think Tank UD 60 |

  
  LOG IN TO REPLY
RobDickinson
Goldmember
4,003 posts
Gallery: 14 photos
Best ofs: 4
Likes: 1053
Joined Apr 2010
Location: New Zealand
     
Oct 09, 2012 16:08 |  #3

Yeah raw is compressed, using lossless compression.
TIFF is huge because it isnt compressed.


www.HeroWorkshops.com (external link) - www.rjd.co.nz (external link) - www.zarphag.com (external link)
Gear: A7r, 6D, Irix 15mmf2.4 , canon 16-35f4L, Canon 24mm TS-E f3.5 mk2, Sigma 50mm art, 70-200f2.8L, 400L. Lee filters, iOptron IPano, Emotimo TB3, Markins, Feisol, Novoflex, Sirui. etc.

  
  LOG IN TO REPLY
Jim_T
Goldmember
Avatar
3,312 posts
Likes: 115
Joined Nov 2003
Location: Woodlands, MB, Canada
     
Oct 09, 2012 19:51 |  #4

For each pixel, you need 24 bits of information. (That's 8 bits for red, 8 bits for green and 8 bits for blue).

There are 8 bits in a Byte. So each pixel contains 24 bits / 8 = 3 Bytes.

With 3 Bytes per pixel, an 18 Megapixel (million pixel) image will have 18 million pixels X 3 Bytes = 54 Megabytes.

As Stone 13 points out, there are some compression schemes for TIFF, but they aren't nearly as efficient as the lossy compression used in JPEG or the non-lossy compression Canon uses for RAW. Because of this TIFF files will always be large by comparison.

Note that 18 Megapixel JPEG images also contain 54 Megabytes of information even though the file size is only 4-6 Megabytes. The JPEG images are uncompressed by your JPEG viewing or editing program. They inflate to the full 54 Megabytes in your computer's video memory locations when you want to view or edit them.




  
  LOG IN TO REPLY
Numenorean
Cream of the Crop
5,013 posts
Likes: 28
Joined Feb 2011
     
Oct 09, 2012 19:54 |  #5

guitarjeff wrote in post #15100014 (external link)
I thought raw was uncompressed, full info, how can that be because when I save to a Tiff from Lightroom the files are absolutely huge, like 40 MB or something. What is Tiff adding to these pics to make the files so big?

If you save with layers they get even larger. I have a few 600MB TIFF files floating around.


Gear List

  
  LOG IN TO REPLY
BirdsofBC
" eye candy, pure and simple"
Avatar
4,166 posts
Gallery: 1 photo
Likes: 29916
Joined Sep 2010
Location: North Vancouver,Canada
     
Oct 09, 2012 19:55 |  #6

Jim_T wrote in post #15101000 (external link)
For each pixel, you need 24 bits of information. (That's 8 bits for red, 8 bits for green and 8 bits for blue).

There are 8 bits in a Byte. So each pixel contains 24 bits / 8 = 3 Bytes.

With 3 Bytes per pixel, an 18 Megapixel (million pixel) image will have 18 million pixels X 3 Bytes = 54 Megabytes.

As Stone 13 points out, there are some compression schemes for TIFF, but they aren't nearly as efficient as the lossy compression used in JPEG or the non-lossy compression Canon uses for RAW. Because of this TIFF files will always be large by comparison.

Note that 18 Megapixel JPEG images also contain 54 Megabytes of information even though the file size is only 4-6 Megabytes. The JPEG images are uncompressed by your JPEG viewing or editing program. They inflate to the full 54 Megabytes in your computer's video memory locations when you want to view or edit them.


this is why we need a thanks button!


https://birdsofbc.com/ (external link)

  
  LOG IN TO REPLY
TeamSpeed
01010100 01010011
Avatar
40,862 posts
Gallery: 116 photos
Best ofs: 2
Likes: 8923
Joined May 2002
Location: Midwest
     
Oct 09, 2012 20:00 |  #7

If I understand JPG correctly, the file is more of a command structure that says "for the next X pixels, display them as RGB(A,B,C)", and depending on the compression factor, it will find similar colored consecutive pixels within a tolerance based on that compression factor, and make them all the same color.

I assume the Raw does something similar but has a tolerance of 0?


Past Equipment | My Personal Gallery (external link) My Business Gallery (external link)
"Man only has 5 senses, and sometimes not even that, so if they define the world, the universe, the dimensions of existence, and spirituality with just these limited senses, their view of what-is and what-can-be is very myopic indeed and they are doomed, now and forever."

  
  LOG IN TO REPLY
apersson850
Obviously it's a good thing
Avatar
12,730 posts
Gallery: 35 photos
Likes: 679
Joined Nov 2007
Location: Traryd, Sweden
     
Oct 09, 2012 21:57 as a reply to  @ TeamSpeed's post |  #8

I haven't studied exactly how they do. Maybe that's not even disclosed, but I guess it is, since third party software suppliers do open Canon's RAW files as well.
But run length encoding is an example of a compression algorithm which doesn't loose any information, just packs it.


Anders

  
  LOG IN TO REPLY
guitarjeff
THREAD ­ STARTER
Senior Member
674 posts
Likes: 10
Joined Feb 2012
     
Oct 10, 2012 11:08 |  #9

Great replies guys, thanks much




  
  LOG IN TO REPLY
Wilt
Reader's Digest Condensed version of War and Peace [POTN Vol 1]
Avatar
46,463 posts
Gallery: 1 photo
Likes: 4552
Joined Aug 2005
Location: Belmont, CA
     
Oct 10, 2012 16:52 |  #10

Jim_T wrote in post #15101000 (external link)
For each pixel, you need 24 bits of information. (That's 8 bits for red, 8 bits for green and 8 bits for blue).

There are 8 bits in a Byte. So each pixel contains 24 bits / 8 = 3 Bytes.

With 3 Bytes per pixel, an 18 Megapixel (million pixel) image will have 18 million pixels X 3 Bytes = 54 Megabytes.

As Stone 13 points out, there are some compression schemes for TIFF, but they aren't nearly as efficient as the lossy compression used in JPEG or the non-lossy compression Canon uses for RAW. Because of this TIFF files will always be large by comparison.

Note that 18 Megapixel JPEG images also contain 54 Megabytes of information even though the file size is only 4-6 Megabytes. The JPEG images are uncompressed by your JPEG viewing or editing program. They inflate to the full 54 Megabytes in your computer's video memory locations when you want to view or edit them.

^

...and for each IMAGE pixel, we need 24 bits of information for the color triplet to represent 16 Million colors (8 each, R-G-B).

In comparison, in the RAW file we need 12 to 14 bits of information for a single site (also called 'pixel', but really a 'sensel') to represent a SINGLE color at 2048 or 8092 levels (Red or Green or Blue), and the Bayer algorithm uses multiple neighbor sensels to compute what RGB value to associate with that single photosite in the RAW conversion process. So, ignoring techniques like data compression, you have 14 bits per sensel vs. 24 bits per pixel, and the number of sensels in RAW = the number of pixels in JPG. Assuming 10 Million pixels, 10 Million*14 vs. 10Million*24 bits!

So there are 10 fewer bits per photosite in RAW vs. the same number of pixels in TIFF.


You need to give me OK to edit your image and repost! Keep POTN alive and well with member support https://photography-on-the.net/forum/donate.p​hp
Canon dSLR system, Olympus OM 35mm system, Bronica ETRSi 645 system, Horseman LS 4x5 system, Metz flashes, Dynalite studio lighting, and too many accessories to mention

  
  LOG IN TO REPLY
tzalman
Fatal attraction.
Avatar
13,497 posts
Likes: 213
Joined Apr 2005
Location: Gesher Haziv, Israel
     
Oct 10, 2012 17:58 |  #11

12 bits = 4,096 values
14 bits = 16,384 values


Elie / אלי

  
  LOG IN TO REPLY
Wilt
Reader's Digest Condensed version of War and Peace [POTN Vol 1]
Avatar
46,463 posts
Gallery: 1 photo
Likes: 4552
Joined Aug 2005
Location: Belmont, CA
     
Oct 10, 2012 18:38 |  #12

tzalman wrote in post #15105451 (external link)
12 bits = 4,096 values
14 bits = 16,384 values

Thanks for correcting my stupidly bad binary conversion...I shudda known better, only involved in technical applications of computing for my whole career. I guess that's why I don't do it any longer, and left the software development to the engineers! :lol:


You need to give me OK to edit your image and repost! Keep POTN alive and well with member support https://photography-on-the.net/forum/donate.p​hp
Canon dSLR system, Olympus OM 35mm system, Bronica ETRSi 645 system, Horseman LS 4x5 system, Metz flashes, Dynalite studio lighting, and too many accessories to mention

  
  LOG IN TO REPLY
BigAl007
Cream of the Crop
Avatar
8,120 posts
Gallery: 556 photos
Best ofs: 1
Likes: 1682
Joined Dec 2010
Location: Repps cum Bastwick, Gt Yarmouth, Norfolk, UK.
     
Oct 10, 2012 22:56 |  #13

Don't forget that TIFF files can also be 16bits per colour per pixel as well. That's 48 bits or 6 bytes per pixel which can make an 18Mpix image run to nearly 103Mb.

Using 12bits per pixel for the RAW data makes sense from a data storeage perspective as you can then store two pixels worth of data in 3 bytes. This fully utilises the memory, moving to 14bits per pixel though is not so good for data storage. For efficent data handling you really need to move to 16 bits / 2 bytes per pixel, so your 14 bit camera is going to waste two bits for each pixel when it stores the data. As storage is now cheap we can afford to waste the memory to gain quite a lot of processing speed. Computers are reasonable at dealing with half bytes from 12 bit systems, but not with the way that you would need to arrange things to fully pack 14 bits into 8 bit bytes.

Alan


alanevans.co.uk (external link)

  
  LOG IN TO REPLY
hollis_f
Cream of the Crop
Avatar
10,649 posts
Gallery: 1 photo
Likes: 85
Joined Jul 2007
Location: Sussex, UK
     
Oct 11, 2012 05:38 |  #14

guitarjeff wrote in post #15100014 (external link)
I thought raw was uncompressed, full info, how can that be because when I save to a Tiff from Lightroom the files are absolutely huge, like 40 MB or something. What is Tiff adding to these pics to make the files so big?

Which is one very good reason for not keeping tiff files. Keep the raw file and the various recipes for creating jpegs or tiffs if at all possible.


Frank Hollis - Retired mass spectroscopist
Give a man a fish and he'll eat for a day. Teach a man to fish and he'll complain about the withdrawal of his free fish entitlement.
Gear Website (external link)

  
  LOG IN TO REPLY
TeamSpeed
01010100 01010011
Avatar
40,862 posts
Gallery: 116 photos
Best ofs: 2
Likes: 8923
Joined May 2002
Location: Midwest
     
Oct 11, 2012 06:22 |  #15

hollis_f wrote in post #15107269 (external link)
Which is one very good reason for not keeping tiff files. Keep the raw file and the various recipes for creating jpegs or tiffs if at all possible.

Correct, keep a copy of the DPP installation at a very minimum in any photo gallery archive, so that hopefully if you have a catastrophe, you can go to the backups and bring up the software and the raws to reproduce any photo. I do that with my taxes as well, a CD that contains the tax software and all related electronic records accompany my paper items so I have almost everything to reproduce what I filed (or almost all).

Sure you can always load DPP from Canon's site, but raw file formats change over the years, and I like having versions of DPP's installation with my photos just in case.


Past Equipment | My Personal Gallery (external link) My Business Gallery (external link)
"Man only has 5 senses, and sometimes not even that, so if they define the world, the universe, the dimensions of existence, and spirituality with just these limited senses, their view of what-is and what-can-be is very myopic indeed and they are doomed, now and forever."

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

4,076 views & 0 likes for this thread, 13 members have posted to it.
Why are my Tiff files so huge?
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
1463 guests, 131 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.