Learn about Tiff versus jpeg. Does Size Really Matter?

Is Bigger Always Better?

men on a very large bicycleYou are probably frustrated with the Tiff vs Jpeg debate. The truthful answer is not one of always use this, or never use that.  Like cars versus trucks, they each have attributes that make them well suited for certain tasks and not others. Often we are asked to describe the difference between tiff and jpeg files. While they share a few similarities, there are a few differences and particularly some characteristics in the Jpeg format that any individual looking to get the very best image quality should know.

A Tiff file (Tagged Image File Format) and a JPEG file (Joint Expert Photographic Group) are both raster file types. A raster is a grid, and raster images have their pixels (picture elements) arranged in a grid pattern – like a chess board with a large number of squares, with each square being assigned a color and density value. When the squares get small enough that our eyes cannot see them individually, they blend together to create the image.

Both file types contain what is called “Meta Data”. Meta originates with the Greek language and means beyond or above. So meta data is information that is above or beyond the “normal” data in the file. In this case, the data that forms the image. This meta data may contain image relevant information such as what color space the file is in, what embedded or assigned color profiles are of note, the actual file type – tiff or jpeg, image dimensions in pixels and inches/cm, a thumbnail preview and some pertinent info that software uses to rebuild our image file from the raw data. This meta data may also contain additional extended information that is not used to display the file, such as the type of device used to capture the image, i.e. what camera or scanner, exposure settings, flash settings, date, time and even GPS co-ordinates and copyright information if available. This list is not intended to be a complete technical description, but just enough info to give you a general idea.

JPEG files use a variable compression scheme to throw information away, thereby allowing the stored image file to require less file size. Jpeg compression is fairly intelligent. The software throws data away to save space, then the application that opens the file uses information embedded in the file to “rebuild” what the lost data might have looked like. The more data that gets discarded, the less there is for the software to base it’s rebuild on and we begin to see anomalies, or what are called “artifacts”. The authors of the JPEG standard knew that the human eye is far more sensitive to density information than it is to color. So color information sees the most loss of detail. Maintaining as much density information as possible here is key to keeping as much quality as possible. While this does effect color-detail, this process is nicer to look at than throwing out the density detail. Our eyes are less likely to see a smearing of the color than smearing of the detail. At higher levels of compression, more information is discarded, including more of the density detail, resulting in an image that looks blurry, or grainy. Some applications such as The GIMP – http://www.gimp.org/ – allow the user flexibility to increase compression in the color only, and leave the detail alone, thus allowing for a bigger bang for the compression buck. One of many nice GIMP features that Adobe could learn from.

Mid Level CompressionLow Quality-Maximum Compression

Max quality - Minimum Compression

 

 

 

Jpeg likes to work in 8 pixel by 8 pixel blocks and any one block has no idea what the next block contains. This can result in the borders of neighboring blocks failing to match for color and density. As levels of compression increase, these blocks become increasingly apparent to the viewer because the “rebuild engine” in the software has less original information to work with and therefor errors will be greater.

The tiff standard had it’s birth in the desktop publishing world as a proposed standard amongst desktop scanning devices. It is widely accepted as one of the image format defacto standards for printing and publishing. The other being EPS. Many consider tiff to by synonymous with uncompressed or lossless compression. This is a false assumption. While the baseline (basic level) of tiff is either uncompressed or uses a lossless line level compression, a tiff file can also be a “container” for a jpeg compressed file. This jpeg-in-a-tiff scenario is subject to all the loss and limitations of any other jpeg file. So be aware that a file with a .tiff extension may not have all the integrity you are expecting.

Tiff’s early days were very limiting. The format supported only 1 bit of data per pixel – meaning black or white. No gray and no color. Over the years the tiff standard has expanded to support ever increasing bit depths and files up to 4 gigs in size. Files over that size use a format called Big-Tiff.

Just in case this whole file comparison thing is not quite “geeky” enough for you, here is a fun fact; The third and fourth bytes in a tiff file alway represent the number 42, which is a nod to “The Ultimate Answer to the Ultimate Question” in “The Hitchhikers Guide To The Galaxy” http://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy#Answer_to_the_Ultimate_Question_of_Life.2C_the_Universe.2C_and_Everything_.2842.29

And they say programmers don’t have any fun.

The tiff standard has been expanded to include support for multiple “pages”. Just like a layered photoshop file. Adobe, who owns the rights to the tiff format, have taken advantage of this flexibility and allow layered photoshop files to be saved in the tiff container, alongside a “flattened” version of the file so that standard tiff reading applications can provide you with a usable composite image.

So I hear you asking: “Which one is best?” This of course depends on your needs. For general photographic and fine art pigment printing, file quality is a majority factor in the final print. Lossy compression means less than stellar printing. So use jpeg if you must, but compress it as little as possible. If you are using tiff, if you must compress, avoid using jpeg compression and go with line level compression. LZW for example.

Now if maximum quality is your biggest concern. Stop shooting JPEG in your camera, unless your raw files are compressed too. Many manufacturers only provide compressed raw.  Check your camera specs. If you aren’t gaining anything by shooting raw, then go for JPEG and save the space. If you have an uncompressed raw or a tiff option, these will yield the best file integrity but take the most room in storage.

If storage space is your primary concern, then jpeg is your friend, at least until camera makers are willing to include lossless compression in their firmware, and it is unlikely they will until there is a demand for it. So if you think it’s a good idea, write your manufacturer and request it.

Want more on shooting Raw vs Jpeg?  Check out my blog post on that topic here

Have a question? Put it in the comments below!

 

Featured Artist: Dan Walters

Featured wildlife artist photographer Dan Walters showcases his fine art prints in this videoExtremely talented, Dan Walters has been epitomizing the perfect wildlife shots for years. Practically undiscovered, his body of work is worth more than a passing glance. In this one-on-one artist highlight with the wildlife photographer, Dan discusses his inspirations and techniques for shooting wildlife. He showcases thirteen of his photographs in a slide show that is not to be missed.

<iframe width=”560″ height=”315″ src=”http://www.youtube.com/embed/wEHH-gSbnnw” frameborder=”0″ allowfullscreen></iframe>

[social_web_link][/social_web_link]

What “they” might not be telling you about the flaws in ICC profiled workflows.

Profiles are typically generated using less than .016% (yes that is less than 16/1000 of one percent!) or 16/100,000 of the 16.4 million colors available in 8bit RGB. Talk about a shot in the dark. There is a tremendous amount of mathematical software based “guessing” that occurs in the ICC color management process.

Profiles are 100% dependent on consistency. They only work if you have consistent input and consistent output. Lenses used in capture, accuracy of camera white-balance calibration, scanner calibration, conditions in process, paper, chemistry, ink, equipment condition, light sources, supply voltages, time of day, humidity, blah blah blah can all have an impact on product output or digital input. These conditions are all subject to change, and do change. Thus, profiles are at their most “accurate” for the moment the profile was created. As these conditions drift and change over time, they effect the “accuracy” of the profile. Many individuals in our industry have touted that profiles have an expectation of consistency. One that unfortunately just does not exist in real world conditions. Through equipment care and high levels of professional level calibrations we attempt to keep our input/output equipment “calibrated” to the same standards on which the profile is based. In theory, this causes the final output to float around the bull’s eye and stay close to the expected, rather than take a direct bee-line away from it and continually get further off-target.
A good lab will calibrate their devices back to factory standards several times during a production day.  This is done to compensate for process variables that occur over time, and changes in paper from batch to batch.
My goal here is to help you become aware that though profiles are often elevated to a high stature as an end all solution,  they really fit more into a false-god category.

Now this is not to say that profiles are useless. Far from it in fact. They can have a dramatic impact on overall color approximation across multiple devices. Such as getting your ink jet to approximate your file and to get our LightJets to approximate that very same file. In fact we use profiles in-house to get our LightJets to approximate the smaller sRGB color space of the Fuji Frontier prints. Due to the larger available gamut of the LightJet, it is more likely to get the LightJet to approximate the Frontier than the other way-round. And we use them in some profile dependent work flows such as our professional digital press, and our Durst Sigma scans. The software that drives these devices, will not function correctly without profiles in place. The truth is, most digital capture and print sotware have some sort of embedded profiling built in. Your digital camera for instance, needs to know the characteristics of the dyes used to filter the image sensor in order to deliver a density and color accurate file.
I believe that any NON-DESTRUCTIVE method of producing better color has the potential to be a good idea. I’ll again stress “NON-DESTRUCTIVE”.  I am a big proponent on avoiding color channel damage whenever possible.  The caveat to forcing a profile on an image is it’s potential for color channel damage. I have seen many files where the colors were pushed too close to 100% saturation prior to a profile conversion. The resulting breaks/banding is inevitably and incorrectly blamed on the profile.

The great thing about ICC profiles in your work flow is their potential to get you closer to your target. They are by no means any guarantee of a bull’s eye, an exact match, perfect color, or any other false promise you have heard or at this point still believe. I often use this analogy: “Profiles are like a ticket to a baseball game. They get us in the gate, and might just get us a good seat, but that ticket will never allow us to sit on home plate while the batter hits a homer. BUT, that good seat is still much better than listening to the game on the AM radio while sitting in the parking lot.”

So, better. It’s just not a guarantee.
Profiles, in a nutshell, describe the devices available boundary or gamut as well as the limitations or inaccuracies and should not ever be confused with or used as working color spaces. They are far too small for use as a working space and should be thought of something to move colors <to> not <within>. Banding/breaking/clipping will likely result if you should choose to ignore this. It is best practice to use a working space that is larger than the output space, then allow your profile conversion to remap to hold detail.

If you remember my remarks regarding consistency, these constant changes diminish profile accuracy.  So why do we make a profile available for our printers? Well, quite frankly, because in most cases, an perceived improvement in print quality will result from a proper color-managed workflow.

One exception to this is our Fuji Frontier. This device is specifically calibrated to work within the sRGB colorspace. It’s output gamut is limited of course by the capabilities of Fuji Crystal Archive paper, but this design will allow a photographer who is color-calibrated and working in sRGB to be free of output profiles. One less layer of potential damage to the file.
So how should you be using your profiles?

Let’s start with what NOT to do.

If I use profiles in an attempt to get one device to approximate the characteristics of another device, I am in essence, attempting to get device A to look like device B, and both devices inaccuracies will be included! This is a great example of Square Peg I A Round Hole. If the gamut (outside edges of the pegs) of device A do not match the gamut (profile outliers) of device B, loss will occur. Much like using a hammer to get that peg in – you’ll shave off some of the peg, and what is left does not completely fill the hole.

fig.1

In fig.1 above, the LightJet Fuji Matte has the larger gamut.The darker looking cube inside that area is the gamut of the Epson Enhanced matte. The bit of gray peeking out at the bottom is the zone where the Epson’s gamut is a bit larger than the LightJet. The area labeled Profile Overlap represents the available colors that both devices share. So this would be the available gamut when trying to match one of the devices to the other. In other words, all of the areas outside the overlap would be lost. In my opinion, that is a pretty large chunk of color to toss away just for the gratification of getting two prints to look as close as possible to one-another.  In essence, we would be “dumbing-down” the quality of our final print.

Good profile methods will attempt to “re-map” or squeeze those outside colors to fit within the range of output (the square hole), but the missing colors (the corners) aren’t properly restored. This results in a sacrifice of color fidelity from the original file.

So if you still want to profile, this is how I approach ICC profiling for Maximum Color Fidelity. At least within the limits resulting from profiling.

Let’s assume that we have:

– A source file: test.jpg
– Ink jet printer A that lets say: prints Blues with too much Green,
– and I have printer B that prints Reds with too much Yellow.

So:
A) +Green cast in Blues = Damaged Color
B) +Yellow cast in Reds = Damaged Color
ICC Profiles = Attempted Damage Reversal (at least in theory anyway)

Example 1: Try to get Printer B to look like printer A with one profile – bad Idea

If I print test.jpg on B, trying to approximate A via A’s ICC Profile, I have a print that has the native issues of too much Yellow in the Reds, and because we told B to look like A, I also have too much Green in the Blues. Why would I want a print with both sets of issues?
Damaged Color + Damaged Color = MORE Damaged Color.

Example 2:  Try to get Printer B to look like printer A with two profiles – best idea for closest approximation between printers 

I print test.jpg using profiles for both printers. I tell my software to make B look like A, but use B’s profile too.
So now the output attempts to remove B’s issues, the Yellow cast from the Reds.
BUT, because I am still approximating printer A, I am still introducing the Green cast in the Blues. So now I have at least one printers issues in full glory.
Damaged Color + (Damaged Color + Attempted Damage Reversal) = Damaged Color. Still some loss, but I should have two prints that are fairly close.

Example 3:  Try to get Printers A and B to look like the source file – best idea for maximum fidelity to source file.

Rather than attempting to get A to approximate B, We print the file to each printer, avoiding an approximation between the printers.
Instead, we want to allow each printer to get as close to test.jpg as possible. So we print test.jpg to A with it’s profile and to B with it’s profile.
A) Damaged Color + Attempted Damage Reversal = Less Damage.
B) Damaged Color + Attempted Damage Reversal = Less Damage.

So rather than compounding issues or keeping some and removing some, in theory, both prints are now as close as they independently can be to the original contents of the test.jpg file.

 

 

TIP!

Nothing in nature is saturated to 100% of any given color. There will always be some absorption of wavelengths of all colors. So don’t push your files thinking the final product will still be believable or still hold detail. The closer to 100% you push the saturation, the closer to zero you push the detail. And please don’t blame your profiles for damaging a file that was pushed too far.  Perceptual profiling is just not designed to work with a lack of color fidelity and you just might be wasting your hard earned cash to get a print you don’t like.

If your preference is hyper-saturation, make sure to match image type to printer type. For example, if you like saturated yellows, you could be printing to a device that can actually reproduce the brilliance you are seeking. Giclee printers are a great example of this. Being an ink-jet, they are quite capable of reproducing intense yellow as this is one of the native ink colors on the device.The same holds true for the other two colors, Cyan and Magenta. When you add any two or more inks together to create a new color, you are adding density and reducing saturation. With the advent of the intermediate “photo” colors, some of the subtler in-between colors are now improved. On the LightJet, the Kodak Metallic paper holds more saturation than Fuji Crystal Archive, but the blacks are not as rich nor as neutral.

How to get great color, save your profits, and never have to work color or density in Photoshop. Part 1

I’m going to fill you in on the secrets of how to get great color, save your
profits, and never have to work color or density in Photoshop. All without
the use of ICC profiles, confusing work-flows or batch conversions.
If you understood the above and it applies to you, chances are you are a
professional photographer. Professional print quality is much easier to achieve
than most photographers are aware.
Getting there requires Five crucial elements. With these five in place, you can go
directly from camera to print and get excellent results.
Yes, that’s right, higher profits and more free time with:

  • No Photoshop work.
  • No profiling magic.
  • No bag of tricks or fairy dust.

Rule #1 – If you have to adjust the density of your files, your metering is
inaccurate.
You may find this hard to believe, but truly consistent exposures rarely come
from TTL metering. I know that’s tough to swallow, but reflective metering is just too fallible.
Don’t believe me? Here is a simple test to see if this rule applies to you.
1. Take a look at the average corrections you are making on your files in
Photoshop or Lightroom.
2. Jot down the number of exposure and color balance corrections you make
in a work week.
3. If the answer is any higher than zero, guess what, I’m right – your TTL has failed you. So how do we
correct this?
Get a GOOD new or used hand held incident flash meter, and calibrate it to your
camera using Will Crockett’s “Face mask Histogram Technique” copy and paste
the following web address into your browser: Go to
http://www.shootsmarter.com/index.php?option=com_content&task=view&id=116&acat=16
Keep in mind that digital cameras have only 1/8th stop of exposure latitude. If you
have an incident meter, compare it against Will’s meter reviews and see how it rates. Some
well known meters are unprofessionally inconsistent . Up to a horrible deviation of +- 1/3 stop from
reading to reading. This is definitely outside of the acceptable range for a
professional photographer by approximately 300%! In other words, that exceeds
professional limits for exposure control by 3 times.

Next week:
Rule #2 – If you don’t have custom white balance, you don’t have correct color.

To make sure you get the rest of this series, you can subscribe to this blog at the top of this page.