Welcome to HardwareForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Does raw format file take more disk space than tiff?

 
   Hardware Problem Solving Community! (Home) -> Digital Cameras RSS
Next:  Fuji S602 Zoom  
Author Message
DRakula

External


Since: Oct 04, 2004
Posts: 1



(Msg. 1) Posted: Tue Oct 05, 2004 12:24 am
Post subject: Does raw format file take more disk space than tiff?
Archived from groups: alt>comp>periphs>dcameras (more info?)

For cameras that store image in raw format, does a raw format file take
more disk space than a tiff file? By how much?

 >> Stay informed about: Does raw format file take more disk space than tiff? 
Back to top
Login to vote
CSM11

External


Since: Nov 22, 2003
Posts: 168



(Msg. 2) Posted: Tue Oct 05, 2004 6:28 am
Post subject: Re: Does raw format file take more disk space than tiff? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"DRakula" <Drakula DeleteThis @severhill.com> wrote in message
news:7nt3m0tvcsppa4l1nd1s82r4o1ksvsvvu6@4ax.com...
 > For cameras that store image in raw format, does a raw format file take
 > more disk space than a tiff file? By how much?

I guess that would depend on the camera.

There is some overhead in an uncompressed TIFF. A TIFF contains the tags
plus the image data. If the Tiff is compressed then the file size is a
little bit smaller.

--
CSM1
<a style='text-decoration: underline;' href="http://www.carlmcmillan.com" target="_blank">http://www.carlmcmillan.com</a>
--<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Does raw format file take more disk space than tiff? 
Back to top
Login to vote
Gisle Hannemyr

External


Since: Aug 18, 2004
Posts: 5



(Msg. 3) Posted: Tue Oct 05, 2004 2:54 pm
Post subject: Re: Does raw format file take more disk space than tiff? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

DRakula <Drakula.DeleteThis@severhill.com> writes:
 > For cameras that store image in raw format, does a raw format file
 > take more disk space than a tiff file?

No. (At least not if we are talking RAW data from Bayer sensors).

An RGB TIFF file with 16 bit/channel need to store 48 bits/pixel.

Before Bayer demosaicing, the camera RAW file only contains
12 bits/pixel - but this translates to 12 bits/channel /after/
demosaicing.

This means that an uncompressed camera RAW should be a quarter of the
size of an uncompressed 16 bit/channel TIF. As you can see from the
table below - its actually closer to being a fifth of the size. This
is because the CRW in question is losslessly compressed.

 > By how much?

How much smaller, you mean?

That depends on both the RAW format and the texture of the image (some
textures compresses better than others). But as an example, here is
some measurements for a CRW image from Canon's Powershot G5.

As you can see, the saving in storage apace is dramatic if you
compare to saving a 48 bit/pixel TIF, and even compared to saving
an 24 bit/pixel bit PNG, you save space.

Note that to save the full dynamic range of the CRW, you need
to save at 16 bit/channel to save the 12 bit/channel that is the
result from Bayer demosaicing.

Here is some measurements I made by saving the same image from a Canon
Powershot G5 (a 5 megapixels camera). Note that for compressed
formats, YMMV depending on image texture - but it gives a rough idea
about the relative sizes involved.

The size of the "uncompressed" RAW is computed figure, indicating how
much space the CRW would need if it was not losslessly compressed.

=======================================================
Format File size Rel. size
-------------------------------------------------------
TIF (48 bit/pixel, uncompressed) 28.80 MB 582 %
TIF (24 bit/pixel, uncompressed) 14.40 MB 291 %
TIF (24 bit/pixel, LZW) 8.20 MB 166 %
RAW (12 bit/pixel, uncompressed) 7.56 MB 153 %
PNG (24 bit/pixel, PngCrush) 6.92 MB 140 %
CRW (12 bit/pixel, Powershot G5) 4.95 MB 100 %
=======================================================
(Use a monospace font for columns to line up).
--
- gisle hannemyr [ gisle{at}hannemyr.no - <a style='text-decoration: underline;' href="http://folk.uio.no/gisle/" target="_blank">http://folk.uio.no/gisle/</a> ]
========================================================================
When you say you live in the real world, which one are you referring to?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Does raw format file take more disk space than tiff? 
Back to top
Login to vote
Display posts from previous:   
   Hardware Problem Solving Community! (Home) -> Digital Cameras All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]