You may be photographing in raw rather than jpeg because you know that raw files contain more information and because they are unprocessed, giving you more flexibility. But how do they contain more information? Among other things, digital photography raw files are captured at a higher bit depth — depending on the camera, 12, 14 or 16 bit, compared to 8 bit for jpegs. Whether 12, 14 or 16, these higher bit-depth files potentially contain much more information than 8 bit files.
So what is bit depth?
For each pixel in your image, the tonal value or brightness of the scene you are photographing is stored in the image file on your memory card, along with the color. Computer files store information in zeros and ones. Bit depth refers to how many digits the tonal information for each pixel is stored in. Imagine if your camera used a bit-depth of one: you would have one digit to store how dark each piece of the scene was, the only possible values would be 0 and 1, and the only two tones that could be represented are black and white:
This image of course has very little detail, since it contains no shades of gray.
If the file had a bit depth of two, there would be two digits, and the four values of 00, 01, 10, and 11 would be possible, so the image could have black, dark gray, light gray, and white:
Notice that we have gained some detail, but that the image is still very choppy. In the histogram for this image, below, we see huge gaps between the tones, confirming the choppiness or posterization. (The histogram is a graph of the tones in an image, going from pure black on the left side to pure white on the right side.)
Let’s jump to a file with a bit depth of 5, which allows 2 to the 5th, or 32 possible values from 00000 to 11111:
We gain alot of detail, but there is still obvious posterization in the sky (click on the image to see it larger). The histogram supports this:
Now let’s jump to 8, which allows 2 to the 8th, or 256 values, and is what a jpeg supports:
This image shows the full detail of the scene with no visible posterization, even when viewed at full size, and the histogram looks much better. (If you see any posterization, it is not real, but rather just the result of my blog save process.) So why not stop here, with 8 bits and 256 tones?
The problem is that as soon as you start enhancing your image, you start compressing and expanding the tonal range. This creates choppiness in the histogram and potentially, visible posterization in your image. To show this, I took this 8 bit image into Photoshop, and added contrast and darkened it:
Notice how this pulled apart the histogram:
The more heavy-handed your adjustments, the more and wider gaps you will end up with in your histogram, and the greater possibility that you will see posterization in your image. 256 tones is often not enough for the fine detail in the image to hold together.
12 bit files have over 4,000 tones, and 14 bit files have over 16,000. This is vastly better, and with almost any work you could do to an image, it would hold together. Here is the histogram from the 12 bit version of the above image, with the darkening and increased contrast:
To have this additional “editing headroom”, you have to capture a high bit-depth image, i.e. a raw file, and you have to enhance it as a high-bit depth file. It does no good to convert a raw file into 8 bit as you move into Photoshop to work it. While you are working in Lightroom or Camera Raw, your work on your raw file is in 16 bit (standardized to accomodate 12, 14 and 16). When you move a file from Lightroom or ACR to Photoshop, you need to ensure that the Photoshop file stays in 16 bit. In Lightroom, go to Edit or Lightroom>Preferences>External Editing, and set your PSD or TIFF preference to 16 bit. In ACR, click on the workflow options at the bottom of the screen and do the same.
Higher bit depth files also potentially have a much larger number of colors: an 8-bit jpeg can represent around 16 million colors, whereas a high bit-depth file can represent over 28 billion. 16 million may seem like enough, but again, with heavy editing, you can see color banding or blotchiness in your photo. Your high-bit-depth photo with billions of potential colors will hold up much better.
The downside to higher bit-depth is larger image files — all else equal, a 16 bit image file is twice as big as an 8 bit image file. But large memory cards and hard drives are so much cheaper these days than they used to be.
Note: I have printed these histograms from Photoshop. Lightroom smooths out the histogram, so you won’t see these gaps — nevertheless, the quality issue issues still exist.
[sc:signup]
[…] and Read More: digitaldailydose.wordpress.com Technorati Tags: 8 bit,16 […]
This is a good explanation. I hope I can remember all of this, the next time someone asks me about raw.
Thanks, Steve!
[…] This post was mentioned on Twitter by Scott Rouse, Tawcan and Forrest Tanaka, Alyce Taylor. Alyce Taylor said: 8 versus 16 bit — What Does It Really Mean? http://is.gd/4YXV3 RAW vs JPEG #photography […]
[…] This post was Twitted by Tawcan […]
exactly what I was looking for. And now, here comes the consequence:
does it worth upgrading for a camera that can save in 14bit Raw? (Like 40d or d300..)? I hope it does…
Hi Paul, sorry, I just noticed your question. I’m assuming you are asking if it is worth upgrading from 12-bit to 14-bit Raw. I don’t believe so — yes, you would be going from 4,096 tones to 16,384, but I don’t believe you would ever visually notice the difference. Both are just so much higher than a jpeg’s 8-bit 256 tones. Yes, more is better, but I would look to other camera features to justify the expense.
Brilliantly explained. Never understood this before!
Thank you. I feel your answer is pertinent and correct. I’ve already get used with marketing strategies. Al those fancy features don’t add to image quality so much… I still might choose a 40d for it’s sRAW capability….
Hi Paul, just to play devil’s advocate, why pay $1000+ for the ability to get smaller raw files? Why not capture the most information your camera is capable of, and when needed, export downsized jpegs/tiffs from Lightroom? Memory cards and hard drives are cheap these days, exporting (especially using templates) is very quick and easy.
you think like an American… Because I’m NOT an American, and my computing (PC) systems it has also limited resources and I usually downsize all pictures to less than 1500px and so that small raw format is really a good thing. It takes the best of the image, not a lot of useless noisy pixels…
*Anyway, Lightroom (a software stupidly written in a script language! not C++ or something…) is quite lazy when it comes to raw files, so reducing their size is an extremely good thing…
Lol, Paul … well since I am an American it is hard to refute that, but primarily I think like someone who wants the ability to do high quality (and occassonally large) prints. I definitely couldn’t do that with a 1500 pixel image, and I fear that I would LOVE something that I shot small, and not be able to print it to my satisfaction. But I agree, if you only need small images and you’re confident of that, no need to waste space and money.
You must really ask yourself what the end result is going to be used for? Buy only what you need. So if you are just making small prints 8×10 or less and don’t mind not having the details of a 12-16 bit image your good. If your only going to view images on a display stick with your phones as their image quality is good enough for that.
The world is being driven to be web centric thus a cross platform scripting language works. Does it make sense? For ease of compatibility, YES for speed not really? As the industry evolves, will web centric go away? After all the PC is replacing the dumb terminal with a user friendly interface and the cloud existed 30 years ago only we called it time sharing. “The CLOUD” sounds cool and airy. We are coming full circle in the computer industry. What’s next?
It’s misleading to say that bit depth is related to “image detail” and that there is a connection between needed bit depth and print size. (Are you mistaking it with resolution?)
Anyway, if you really meant “bit depth”, than:
Perceptible image detail is the same regardless of “bit depth” (for >= 8 bits per channel which means 255 different shades or red, green and blue), what changes is the amount of information that can be “extracted”/”brought up” in post-processing before visible color separation starts to occur. It’s like strecthing a very fine ruler, the markings get more and more separated and at some point you can actually see them as separate/discrete.
It’s fine if you have no idea what I’m talking about because it’s really a techy subject which ordinary “mortals” need not know about because it doesn’t help them in any way :) It only matters if you own a DSLR because then you can get better results if you know about it.
Paul, Thanks for that, I think I can see now how it works.
The fog is lifting.
Vincent
Nice intro and explanation of this topic! I just shared on Twitter as well (@davidkammphoto, @thegreekcat).
I essentially always shoot RAW and process in LR3 now. Love that combo.
Thank you, David!
Very helpful. As so often, you have enabled me to understand an important concept for the first time. I’m so pleased to have found you!
Thank you, John!
Why is it then that some of my filters are greyed out when I’m working on a 16bit image, but not an 8 bit image.
I use the pinch tool often and I can’t access it on a 16 bit image so my only choice is 8 bit
Garry, because many Photoshop filters don’t work with 16 bit files — you have to first convert them to 8.
If you convert a PS file to 8 bit, then does it degrade your image? is it permanent?
Thanks for this explanation about bits. Very clear, and helpful.
Nancy, it doesn’t directly degrade the image, but if you need to do a lot of enhancement afterwards, you may see banding. Do the heavy duty work first, then if you need to convert it to 8-bit to use Photoshop filters, do so afterwards.
I want to know something, I’m doing a project in that, I get 8bit hex values(00 to FF) of each pixel and process that then I’ll have 12bit hex values (00 to FFF) that is I increase the bit depth. Now I want to show the compressed image, In VB.NET bitmap accepts 8bit,24bit, etc. So I have to convert the 12 bit depth to 8 bit. This is my problem. How can I proceed?
Well-constructed explanation. I couldn’t understand this subject as explained on other site. Whom ever you are, you should be teaching the subject at a college somewhere.
Thank you, Naef — I am happy to hear the article was so helpful!
What a fantasticly clear explanation! Thank you.
You’re welcome, Jared!
Hi Laura, So my lab wants 8 bit jpegs in RGB format. I was editing in pro photo 16bit and converted it to 8 bit as a jpeg. I switched to sRGB after seeing a seminar on the fact that prophoto has so many colors and most prints can’t print that many colors anyway. So I switched to sRGB. Given that I will be sending my photos to a lab, should I edit in 8 bit so I can edit for printing and make sure what ever I am doing doesn’t look awful when it’s then converted to 8bits? Should I use pro photo, srgb, 8 bit 16bit? I want to provide my clients with files they can print up to 8×10. What do you recommend? There is so much out there, it’s hard to know what is the best thing to do. My eye can’t see the difference! I am simply taking portraits and sending the files to a lab for printing, or my clients are printing. so confused! thanks!
Hi Rebecca, assuming your images are raw files, you are automatically editing in 16 bit ProPhoto in Lightroom (you have no choice.) When you make those final 8 bit sRGB jpeg copies for your clients, the fact that you are going down to 8 bit is fine, and won’t produce a visible change in quality (you had all the extra 16 bit data for your editing phase, which is what matters). However, if you have richly saturated colors in your photos, because you are going to the smaller sRGB color space, you may in fact lose saturation. You can preview this affect by using soft proofing in the Develop module in Lightroom 4. (If your output is always to sRGB, you could in fact do all your Develop work with soft proofing turned on and the color space set to sRGB.) If you don’t tend to have really richly saturated colors, you will in fact see no difference, so soft-proofing may in fact not be something for you to sweat.
I should mention that if your lab provides a profile to download, ideally you would soft-proof and output to that, rather than to sRGB. However, for files you are sending to consumers who could print them anywhere, sRGB is a good safe bet, and if you just don’t want to get into profiles, sRGB is a safe bet to send to your lab as well.)
All this said, the most important thing you can do to get predictable results is to calibrate your monitor, so that it is telling you the truth about what your photos look like.
Color spaces, soft proofing, profiles, monitor calibration and much more are covered in my Lightroom 4: Producing Great Output series.
I have a question regarding post editing. I shot with a D800, raw and jpg files. I downloaded with Nikon Transfer and apparently that corrupted the raw files, making them unusable. I had to edit my jpgs in camera raw thru PS CS5 Bridge. These files will be used for creating large posters (20×30) for a corporate client. The jpg goes from 8bit to 16bit when I bring it into camera raw. Should I keep the file at 8bit or is 16bit better? My output is saved as a tiff file. 8bit file is 103mb and 16bit is 206mb. File size is not the issue, quality of the file is paramount. Any suggestions would be appreciated. Thanks!
Hi Steve, it’s definitely not the same as starting out with a 16 bit file, but I would go ahead and do your editing in 16 bits if you are going to do a lot of editing. It certainly can’t hurt (other than from a file size perspective.)
Nice explanation of what larger bit files represent. I occasionally shoot landscapes , but primarily shoot wildlife and find that the larger bit files over saturate wildlife images. I’m shooting a D300S Nikon and the 14 bit mode slows the buffer down as well as drops the shutter speed one step. I do notice the 14 bit is great for those fall colors shots and anything I want really saturated with color – but it makes my animals and background way too much for routine editing. I have recently installed Lightroom 4 and CS 6 – and not had a chance to explore the upgrades from CS 3. Are my 14 bit files more easily raw edited in Lightroom 4 ?
Hi John, a higher bit depth would not cause higher saturation. what you are really comparing in your observations about your camera is raw files vs. jpegs, and in the case of raw files, how Adobe by default interprets color from your paticular Nikon D300S. (The jpegs have color interpreted in-camera). What you are really saying (as interpreted by me ;-)) is that you are not satisfied with how Adobe interprets that color for your raw files. In this case you should use one of the Nikon-specific profiles in the Camera Calibration panel in the Develop module. Here is an article that refers to this (a little different twist, but bottom line, experiment with the profiles): https://laurashoe.com/2010/01/04/why-do-i-see-my-images-change-after-they-are-imported-into-lightroom/
It does not surprise me that the buffer slows down, as the raw file is over twice as large as a jpeg. It does not make sense to me, however that you would lose a stop of light. Perhaps someone else will chime in on that.
Hi Laura,
Late reply but I think that John is referring to the “motor drive” speed rather than shutter speed. eg the maximum burst rate would be 5fps rather than 6fps so the buffer has a chance to process the image data.
Cheers,
Matt
Laura,
Your article was very helpful, thank you. I am currently uploading images onto e commerce sites. One site only makes prints for the customers. One allows for you to sell prints, but also to sell downloads (Rights Managed or Royalty Free). Both sites prefer images to be uploaded in jpeg so I imagine that also means in sRGB and in 8 bit? Is 8 bit good enough for printing even at large sizes? Is 8 bit good enough to be sold as high resolution downloads for a company possible wanting to use it for a billboard? Also, when I convert the color profile should I check the rendering intent for relative or perceptual? I notice when I convert to sRGB from ProPhoto (I use Adobe Photoshop 6) that sometimes I see a change in hue especially when it is a blue sky at twilight – it gets a bit more purple -ish after I convert it to sRGB. Is this something I just need to live with?
Thanks, Joan
Hi Joan, I would convert them to sRGB. 8 bit is the only option for JPEG — and in any case is fine. It is only important to work in 16 bit as you are editing your photo. For rendering intent, I would choose relative. You can soft proof your photos (in LR or PS) to preview what they will look like — this would cause me to back off on the blue saturation to not get that purple shift.
Laura, I have another question. The e-commerce sites (that I will be uploading my images to) ask that I not use any file compression. How do I make sure when saving my images in jpeg file (Photoshop CS6) that they are not being compressed? I only see where I can use a slider to adjust image quality (size?) and I have been leaving it at the highest at 12 and then below I check optimized. Am I doing this correctly?
Thanks again,
Joan
Hi Joan, I’m sorry I didn’t see your questions. The JPEG format always applies compression — even the highest quality setting. For no compression, choose the TIFF file format.
very good and clear job Laura, I just had to argue with a “pro” who shot in JPG in “sharp” mode and delivered posterized picture for a catalogue.
congratulation
this is a very clear article. I have tried many times to understand the lot about 8-bit depth etc…. Read many things about it but somehow my attention kept being stuck on it. For the first time, I finally understood it. Thank you for making this so crystal clear with samples.
[…] ou en format RAW. C’est un peu plus complex d’expliquer 8 versus 14 bit mais il y a un bon article écrit par Laura Shoe (en anglais seulement) qui explique très bien la différence. Elle fait référence à la […]
Many thanks for including the histogram with the explanation! As others have said, I have never seen this phenomenon explained so nicely.
I’ve been scanning my b+w negatives as a tiff file (my scanner’s limitation) then editing in PS using Color Effects Pro. My images certainly are not RAW but still print out beautifully using piezography K7 Split Tone Inkset on Moab and Hahnemuhle paper. I take the tiff file and convert it to PS native and print as a PS native file.
Is it possible to maximize the amt of info in my tiff file before working on it as a psd file? Also can this be applied by converting to tiff from my NEF file on my D7100? Thanks for this terrific blog! Gar
Hi Gary, you aren’t really gaining anything by converting it from TIFF to PSD. I would just continue to save as a TIFF, including your layers (if you have PS layers).
I should also mention, Gary, that you aren’t losing anything either by converting to PSD — it doesn’t matter – both will preserve all the data. Just be sure you are scanning in 16 (48) bit mode.
[…] May 2, 2013: Laura Shoe has an excellent tutorial on bit depth over on her site: 8 bit, 12 bit, 14 bit, 16 bit — What Does It Really Mean to Digital Photographers? She also has an article on Chromatic Aberration that explains it […]
Thank you, Laura, for a great article. I learned from it and from your replies to the comments as well.
You’re welcome, Dee!
Laura, I got an issue with bit depth in LR:
LR 4 and 5 let you manage 32 bit images, which is so good. It’s really easy to detect 8 bits files from 16 files but not quite easy with 32 files if you have a bunch of pictures to process. PS show on the name the bit deep but LR doesn’t. Any ideas to resolve this? I’ve tried by metadata without any luck.
Hi Diego, fortunately with Lightroom 5 you can now build a smart collection with bit depth as a criterion. In the drop-down, choose Color > Bits per Channel.
So how many levels of tone does a 32 bit image have when we work with it in LR 5?
Depending on what you captured amongst your HDR images, Armando, it potentially has up to 2^32, Armando, or over 4 billion. Because our monitors and output devices can’t display this many, highlights will continue to appear blown out, and shadows blocked up, until you “tone map” them — i.e. bring them down into a range that can be displayed, using the Basic and other panels.
Thanks, Laua, for one of the most lucid explanations of bit depth I’ve read!
Jan Armor
Hi, Laura. Thanks very much for this article! I hope you can answer this question. Even after reading all the above comments, I’m still a bit confused.
I’m not a pro. I have a Sony RX100M2 that shoots 14-bit RAW images. I use Photoshop Elements 12. When I open a RAW image into PSE12’s raw editor, I can select 8- or 16-bit.
From your article and the comments above, it seems that I should choose 16-bit in order to gain as much color space as possible in order to recover shadow areas, etc., correct?
You talk above about the problems with posterization with 8-bit. My question is this: if my workflow is the above and the image looks great in the raw editor, then I convert it to 8-bit (in order to edit in PSE12), will I get posterization (using your example, in the sky areas, etc.)? If so, any way to avoid this?
Thanks so much!
David
Hi David,
No, you won’t get posterization by converting – what you see is what you’ll get. Work after it is in 8 bits is what’s at risk.
Laura, thanks so much for replying. Perhaps you could comment on this problem, as I’m sure it would help a lot of us:
I’m now getting my feet wet with RAW files. When they open in Adobe Camera Raw, it’s very difficult to figure out which adjustments to make and in which order to make them. For example, should I adjust Exposure then Blacks then Highlights then Whites, or ??? No matter what adjustments I make trying to make the image look right, the Auto button in ACR always produces a much better image.
Can you offer any guidelines for us? Thanks!
David
Hi David,
My apologies for the delay in responding. Here is an article and video tutorial on my recommended workflow for the Basic panel (for Lightroom 4 and Lightroom 5.)
Hi, Laura. Thanks very much for this article.
I hope you can answer this question.
How can I convert 8 bit image into 4 bit image.
I couldn’t do it in Photoshop, because there were no 4 bit option.
Thanks in advance!
Basem
Hi Basem,
I thought I answered this, but it looks like I didn’t. This isn’t something I have experience with (and most photographers don’t need to create 4 bit images), but here’s an article I found on Google: http://markjwilson.hubpages.com/hub/Saving-4-Bit-images-in-Adobe-Photoshop.
Hi Laura,
My question has to do with the conversion. When I open a 14 bit image in LR, does it automatically convert to 16 bit? Then when I edit it in 32 bit in PS, it auto converts to 32 bit?
When you say 32 bit offers over 4 billion levels, that is per channel right? So 4 billion ^3 is the total number of colors and tones possible per pixel?
Thanks so much for helping me (us) understand this topic!
AE, Lightroom does work in 16 bit, so your file will get more decimal places for work done on it, but it really doesn’t matter – you’re not going to gain anything (or much of anything). The fact that you’re capturing in high-bit depth is what really counts. Same with PS – yes, if you convert your file to 32 bit, your file will be much larger and there will be more decimal places to store work, but you don’t gain “HDR” dynamic range.
hello, thanks for your explaination.
theoretically i get your point. more shades for each color give you a bigger variety of lossless adjustments.
but: i never realised any difference between 8bit and 16bit when working in photoshop (you can only choose between 8 and 16). even when i used 5 adjustment layers. i have to say: i am not doing any huge adjustments. its more about fine tuning and digital developing.
oh well, there is one very big difference when editing 16bit images compared to 8 bit ones: every adjustment takes at least twice the time. plus when you are editing hundreds of photos the double file size really comes into play.
but honestly: who is doing adjustments which cut of 90 percent of the image’s tonal range and then expanding it back to the fullest?
to see what i mean look at this article: http://www.photoshopessentials.com/essentials/16-bit/
but the reason might be that i am working on photos. and those always contain noise and do not have a super clean gradient. concerning this here a very interesting article and at the beginning not too scientifical: http://theory.uchicago.edu/~ejm/pix/20d/tests/noise/noise-p3.html#bitdepth
finally a histogram that contains holes might only be annoying when you think of the lost information theoretically. but in an image i never realised any bad impact of this.
best wishes, clemens
Thank you for your comments, Clemens. I certainly agree that often 8 bits of information is more than adequate. Note that my article really isn’t about whether to do Photoshop editing in 8 bit or 16 bit – it is about whether to capture your original file as a high bit (12, 14, 16 – whatever your camera captures), as opposed to an 8 bit JPEG. I do definitely see value in capturing in raw, then if file size or speed is a consideration, making a decision based on the amount of editing you plan to do in Photoshop on what bit-depth file to work on in Photoshop.
In terms of the original capture, in addition to other benefits of raw files, I prefer to capture a high-bit raw file to ensure that I always have enough information to do whatever level of adjustments I need, and I am happy to risk filling up my hard drive more quickly. If you watch me develop the beach photo in this video, this image would not have held together if I had shot it as an 8 bit JPEG. (Note that the video is very old – it uses LR 3 and requires flash to watch – but it is a good illustration of where heavy adjustments are needed.)
True, i forgot that this article was just about high bit raw vs. jpg.
there is no doubt that you have to take raw files (in the very most cases) if you take digital photography seriously.
i stumbled over your blog when looking for an answer to what really could make a difference between a 8 and a 16 bit file in Photoshop…
but anyways.
i appreciate that you take your time for every comment!
Hi Laura, interesting article!
I understand the difference between 8-bit and 16-bit processing in terms of possible posterization.
But concerning the difference between RAW and JPG, there is more. A RAW file supplies a greater dynamic range than a JPG file. Some of the RAW file’s bits are spent to cover this extra range.
Speaking from my experience in working with RAW files, I would say that RAW covers 2-3 more stops than JPG. (Obviously, this depends on camera brand and model.)
Assuming a 12-bit RAW file, this implies that 2-3 bits are needed for the extra range. Only the remaining 9-10 bits are really there for increased granularity, i.e. to prevent banding etc.
Is my conclusion right?
I haven’t worked the numbers, Gerald, but yes, a higher bit-depth file can store a greater dynamic range. (This is why HDR files are 32-bit. The process of tone mapping is used to shrink the result down to 16 or smaller.)
Laura, I am somewhat of a novice, so I appreciate reading your expert advice concerning bit depth files. I downloaded a photo off the internet (5514 X 3678) with a bit depth of 24. I want to have it resized to postcard size about 3.5″ X 5.5″, so I’m guessing the detail will be very good?
Hi Mike,
A bit depth of 24 is really 8-bit. Each file has 3 color channels, so sometimes 8 bit is specified as 24, and 16 as 48. In any case, the detail is exactly what you see. The only issue you might have is if you do heavy edits to the photo – then you MAY see color or tonal banding.
I do a lot of nature shooting and I tell other that shoot with me to use the raw format instead of JPG you article explains it well and I will have to remember the main points that you mention. I also try to get them to expose to the right for less noise and more detail.
You might find this interesting it is the concept of exposing to the right to gain the most S/N ratio where the camera has more detail in the bright area than in the dark areas.
http://www.luminous-landscape.com/tutorials/expose-right.shtml
Thanks for the link, Dan. While I don’t go into the technical details, I do have a few articles on exposing to the right. Here’s the first (which links to the others).
Thanks for the crystal clear description. I already knew most of what you explained but you touched on a couple of points I didn’t fully understand. Excellent explanation: thank you Laura!
Thank you, Michael!
Laura,you did a very good job of explaining why photographers no longer need to take raw + JPEG files.
Thank you.
Very helpful! Thank you for taking the time to write this, and especially the comparisons of pictures with different bit depths. I know my histograms pull apart even after something as simple as a Levels adjustment, so I will try to stick with RAW files in 16 bit (even though the files are 75MB coming out of my D800).
Hey Randall,
if you ever come back from a a photo-trip having shot thousands of 36mp 16bit raw files and you start to consider if your huge hard drive is comparably small and your highspeed computer is just ok fast after all, then don’t worry taking 12 or 14 bit files the next time.
the reason is that a histogram with some little holes looks nasty to the nerd but it doesn’t have a real bad impact on the feeling and look of the photo (thanks to the noise http://theory.uchicago.edu/~ejm/pix/20d/tests/noise/noise-p3.html#bitdepth ;) )
but i see one thing where 16bit from the camera really helps:
you shoot a picture with a huge dynamic range (very light and very dark areas together in one picture) and you wanna have good details in the blacks and the whites, plus no clipping of important areas. and you cannot make a HDR-Shot.
then 16bit becomes your good friend (while your computer may not completely agree with you ;) ).
best wishes,
Clemens
Thank you so much for this explanation. I love the visual aids and this whole depth thing finally makes sense.
I am not a photographer, but a visual artist, and I was just recently asked to submit a file of 24bit depth and above as a JPEG. I have never needed to use anything higher than 16 and I’ve mostly worked with 8 (flat colour images do not need as many colours). I find that Photoshop does not let me save a file as a JPEG past 16bit. Do you have any idea why?
Mili, 24 actually means 8 (and 48 means 16). An 8 bit file has 3 color channels, so some people use this 8×3=24 terminology.
Same problem, but now solved.
& thanks Laura for such a wonderful detailed explanation.
Laura, this is an excellent explanation but I still have one area of confusion. You say that a 14 bit image has over 14000 tones yet you also say that it can have over 28 billion colours. How can this be so?
Also can you confirm that half of all the colour information captured is in the brightest stop of the image and half the remainder is in the second brightest etc.?
Thanks.
Thank you, Brian. A 16 bit image has 2**16 = 65,536 tones (i.e. shades of gray). Each image has 3 color channels (Red, Green, Blue). 65,536**3 = 28.1 billion.
Yes, you are correct that our camera sensors capture most information in the brightest stops – hence the recommendation to expose to the right (i.e. as brightly as possible without blowing out important highlights.)
Very good explanation. Often people go with “more is better” without knowing why really. The problem is that the “teoretical explanation” of having more colours seems as if it must be better, but in practice if you’re printing you photos directly from the camera or doing some very basic (perhaps automatic) processing just to have them looking relatively good (e.g. not washed out) then JPGs are enough.
There is also an argument about JPG being compressed and thus never looking great. I own Canon SX510HS (a bridge camera) and can tell you that JPGs at superfine quality look absolutely great, and for a filesize of up to 10MB for 12MP (usually 5-8MB though). It don’t believe that’s true anymore, at least not with never P&S or bridge cameras.
For quite a while I did editing on JPG files and it was working really good actually while I wasn’t doing any aggressive editing, such as trying to boost shadows significantly or “expand” the image that was inherently dark. I really felt like there is no need for RAWs because my JPEGs are so good. Recently I got into astral photography just for fun and I’ve found out that you just can’t pull that kind kind of results out of JPEGs (you need lots of very aggresive editing to get all your light and colors in good range so that they are not all over the place). Everything gets too weird and artificial looking, you lose a continuum of colors and get some very pronounced sharp colors, as if everything was cheap GIF animation :D sorta.
Googling around as I usually do, I found about a hack for Canon P&S cameras, called CHDK (Canon Hack Development Kit), which allows you to shoot in RAW and many other options such as arbitrarily long exposures, intervalometar scripts etc. Higly recommeded for everybody with Canon P&S to check it out! Your RAWs will not be 12 bit, but 10 bit since that’s the limit with P&S. Still it is 4 times more colors than you currently have with 8 bits.
I have to admit that editing RAWs is a rather complicated process because you have to do everything that your camera otherwise does to produce JPGs, such as noise reduction sharpening (you wouldn’t believe how much noise there is in RAWs really) and what’s worst really – geometric corrections because your images will look somewhat distorted due to the nature of the lens you’re using, but the quality of your editing results will improve 10 fold. No longer will you suffer from cheap looking images after editing. Also the multitude of options gained by switching to RAW is immense.
So if you have Canon P&S, get a CHDK and start shooting in RAW, the effort will pay of in a week after you grasp it. You’ll feel like a real photographer with your P&S, rather than being somwhat or completely ruled by your camera limits.
Hi Marg,
Thank you for your post. Another reason for shooting raw rather than JPEG, in addition to the bit depth issue described in this article, is that you will have a greater dynamic range – this allows you to recover highlights and shadows that in a JPEG would be clipped (i.e. have no detail.) I personally also prefer the “more is better” approach regarding bit depth because I do not always know in the field how aggressively I might want to edit a shot. Finally, whether you see the difference between a compressed JPEG and an uncompressed raw file when you print it depends on how large you print, how perceptive you are to detail, and how large of a file your camera captures.
For those not very familiar with raw files, I’ll just point out that raw files are not inherently noisy, and all else equal, don’t have more noise than JPEGs. The only reason you might experience this increased noise with a raw file is if your camera is set to perform noise reduction on the JPEGs (or does it automatically). Whether you see noise in your raw files will depend on what ISO you shoot at (higher -> more noise), how brightly exposed your image is (darker areas will have more noise), and the quality of your camera.
I do agree that there is more work to do with a raw file, but Lightroom has excellent tools for this, including lens profiles to correct lens distortion and vignetting. Note that even JPEGs will have these lens issues.
I don’t have any experience with the plug-in you mention, so I can’t endorse it, but I am certainly in favor of capturing raw files, so if I couldn’t afford to upgrade my camera, I would look into this. I do see that on their website they do mention that there are risks involved with this product, so anyone who is considering it should read this carefully and do their own research.
Thanks for replying; everything you’ve said is right up the point.
I should mention that I use DNG format – i.e. my camera outputs that, instead of pure RAW because I find it to be much more versatile.
I’ve discovered that the software I was using for displaying (“previewing”) DNGs was somehow introducing some kind of “speckle” noise into the picture, which doesn’t really exist, so what I said about noise is not true really. But when I opened the same file in Adobe Camera RAW, everything was fine, which I (wrongly) assumed is due to noise reduction it performs, which lead me to believe that A LOT of noise reduction needs to be done to make RAW/DNG look good in that respect.
I discovered that I needed to install Adobe DNG Codec to be able to view DNGs correctly outside of Adobe products basically.
Speaking of DNG, it seems to me that it might be better using it rather than RAW to store your images because of added benefit of being able to display it any image app (like any other image) with processing information being embedded into it (i.e. not as additional file with it). Also JPEG preview is stored in it so you don’t have to render it every time. I’m still not familiar with all aspects of using it, but it seems to me that it’s great “one size fits all” format. In fact, I’m not even using JPEGs as such anymore. DNG file contains all I need (RAW file, ACR processing steps, JPEG preview in resoultion you choose).
I’m interested in what you or anybody else think about it, have you ever used it, and do other pro photographers use it or they just stick to their RAWs?
RAWs are camera specific and you might have issues with your RAWs being transferred to another computer/device in general, but DNG will work fine almost everywhere (I think it’s based on TIFF format which is quite common).
how can i convert an image of 8 bit depth to a 24 bit depth image?
please someone tell me.
They are the same thing, Parth – an 8 bit file has 3 color channels (red, green, blue), so some people say that this is an 8×3=24 bit file.
Laura this is really an excellent article, still after 4 years. Just wondering what you think of this below – seems bizarre to me, I can still take high bit TIFFs if they require out of camera files, but for Reuters to insist on 8 bit JPGs as a standard seems very backward.
http://www.dpreview.com/articles/1135269351/reuters-will-no-longer-accept-edited-raw-files-from-freelance-photographers
I’m sure their reasoning, Jim, is that for news purposes, photos won’t be adjusted greatly, so the extra editing headroom isn’t necessary. In return they get much smaller files. I’m not sure why they care if they are shot in-camera as JPEGs, as opposed to shot as raw, with JPEG copies made afterwards. As a photographer I’d prefer the latter, in particular so I have a chance to recover blown-out highlights.
Thank you very much for the info. Anyway I notice that a big part of discussions about 8 vs 16 bits are nice in the theory but very difficult to identify in the practice.
I found other good explanation with more details on the levels window:
http://www.film-effect-photoshop.com/8-bits-vs-16-bits-photoshop.html
To see in practice, Anto, find a photo that needs very heavy editing, and export and re-import a JPEG copy of it. Work the raw file and the JPEG and compare.
when I cahnged the bits from 16 bits to 8 bits what do this to the image and whts the diffrents ?
It doesn’t do anything to the image right away, Maryam – it just limits what editing you can do going forward, without seeing banding and color blotchiness. Changing a file from 16 to 8 also means changing it from a raw file into a JPEG or TIFF. You’ll lose all the editing advantages of raw files – bit depth, the ability to recover blown out highlights, the ability to change white balance and get highest quality results, etc.
Thank you Laura! I am trying to identify and purchase a document scanner for home. I want fast, easy, reliability, and quality. As I research there are so many different acronym, parameters, and units that I am not familiar with, so I look them up. It is important to me to do a good job here as I don’t have a lot of cash to spend so I have to get it right.
I need to understand bit depth. Its mention in specifications all the time and I had no idea of it’s value. Your article was EXTREMELY valuable. I now feel confident I know what the parameter means and the adequate value for my purposes.
I really can’t thank you enough.
Jack
I’m happy to hear it, Jack, and thank you for your note!
I don’t remember if I mentioned it in the article or not, but often scanner manufacturers use 24 / 48 bit language rather than 8 / 16. Images have three color channels. With the former, they are just displaying bit depth as 8×3=24 and 16×3=48, so 8 is the same as 24, and 16 is the same as 48.
Hi Laura,
Thanks for this brilliant work on this article.
I still have a doubt about the bit depth considered in the histogram.
I read that camera’s histogram usually only shows 8bit information (even for Raw files), is that correct to the lightroom’s histogram too?
And a last question, when we convert a 12bit image to a 8bit image, what part of the 12bit file is lost, i.e., the very dark and light information or we lose information all over the range of tones.
So, if the last case is true, in a 12bit to 1bit convertion, we would end up with a histogram very similar to the first one in your article?
Thanks a lot.
Felipe
Hi Felipe, you won’t see the gaps I mention in Lightroom’s display of the histogram, but the banding issue is present nonetheless. When you convert to 8 bit you lose information across the range of tones.
hi laura shoe can you please explain how to increase bit length of an image
You really can’t, Vishnu. Yes, you could export your 8 bit JPEG as a 16 bit TIFF, but you wouldn’t gain anything by doing so – if the more precise tonal information isn’t captured in-camera, you can’t create it afterwards.
The bit depth camera may has describes the technical capability of the Analog to Digital converter connected to the sensor.
Perhaps the accuracy of this chip is limited.
1. Conversion error basic – This error is caused by the fact that an ideal converter can only make distinction of 1 bit. In the average this causes a bit error of 0.5bit ( one half to the higher value and 0.5 bits to lower value).
2. Linearity error – Good A2D converters have a best 1 bit of linearity error. A bigger error is usual addressed by an error correction mask which includes reducing this error at best to 1bit.
That means a 12-bit A2D has only really 10.5bit true date range (0-1448 levels of brightness for each color).
If the file contains only 8bit data from this A2D then all the above discussion is absolutely correct. The worst case is the color blue in the sky. A deep dark blue sky has about an 8bit-value of 20 – 50 bits resulting always to heavy banding of the skys digital representation. More so if the picture is edited.
Summary:
1. The dynamic range of sunny picture is between 1:10000-20000. To cover this a 16bit A2D is sufficient.
2. Always discount at least 1-2 bits from the A2D converter of the camera. 16bit are actually 14-15bit(16384-32768 brightness levels), which are sufficient to cover most of the scenes in reality. Perhaps in the darkest shades there are only 1 or 2 different brightness levels left.
3. All this becomes very visible if the picture is extremely underexposed and during editing the picture has to be pushed a few stops up.
4. Always expose your subject reasonable bright without blowing the highlights, if those matter to the scene.
A lot of inventions and new tricks in picture editing may make all this discussion obsolete in the future.
MOST important:
Keep looking out for good pictures and take them when you see them – There is no second chance to take this same picture later again!
Our quest for quality is manic – It really doesn’t matter much, if the picture documents something important to you or others it can be blurry, un-sharp , B/W or fake colored, underexposed or whatever – It still has a meaning to someone or many.