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!

 

Getting the Best Possible Print from Your Fine Art Lab. Part 2 of 5

Is File Format Actually Important?

Last week in part 1, I wrote about a print being the total sum of all the parts in the workflow and how each part plays a role. We also touched on the importance of proper exposure for a good starting place. As promised, this week I expand the parts to cover gear and the common question of file formats.

Good gear.
If your lenses are of poor quality, don’t expect your images to be ready for fine art printing. Aberrations distortions and flares, like exposure, can only be somewhat compensated for, but not completely repaired in Photoshop. ANY distortion corrections in Photoshop means that your pixel data will be re-sampled. And re-sampled means it will be softened. Flairs, result in lowered contrast that equates to lessened detail, and repairing apo-chromatic errors requires re-sampling one or more channels. It’s preferred to handle this during raw conversion  but it still requires a re-averaging or re-sampling of pixel data.

File format.
For a fine art image, Unless jpeg artifacts are part of your style, (see my blog post on tiff versus jpg issues here) I recommend that the image be captured in an uncompressed raw format. Some camera manufacturers force users into either jpeg or compressed raw formats. For the wedding and portrait guys. This is usually fine. Their critical gamut for color lies mostly in the skin tone ranges of their subjects and the rest of the world is secondary. In a fine art print, the rest of the world is the artists domain and critical for color. JPEG compression throws color information away first at the higher quality levels, then moves on to also discarding density detail as the compression level increases. I have yet to see a digital camera that will hold the same level of color fidelity in the compressed file, that can be had in an uncompressed raw file. With the rapid pace of camera development, I imagine this issue will be corrected in a few years, if not sooner. I suppose we’ll just have to wait.

Do as much of your color correction, saturation work, density tuning and sharpening during the raw conversion process as you can.  Any resampling of color post-conversion can lead to lesser results when levels of density in each color channel are expanded, leaving gaps that cause rapid transitions in color, or compressed, causing a loss in color fidelity. Am I nit-picking here? Could be. But remember, the topic is getting the best possible print.  Nit-picking get’s you to that end. Shortcuts might get you an acceptable print, just not the best print possible.

File conversion.
The software used to convert your raw files can also go a long way to make or break your image.  For several years, I have been using Bibble Pro to convert my raw files. Side by side tests with current adobe products show that Bibble preserves more color fidelity and introduces virtually zero artifacts into my files. Adobe products appear to be using an interpolation scheme that sometimes creates zipper lines on hard edges and at other times, completely softens color detail in some of the channels.  When my distant Autumn aspen trees look like cotton candy in the red channel, missing all semblance of leaf detail, something is horribly wrong with the adobe raw converter.  Prior to final file work, I always convert my raw files to a tiff in a decently sized working space such as ProRGB or Adobe 1998. Especially for anything I will be printing on either photographically on the Lightjet or Pigment on watercolor or canvas.

Let me know your thoughts. I would love to hear your ideas.

Next from me: Sweetening the print through fine-tuning.

How big can I print my file?

Here is another great question we hear quite often. Sometimes more than once a day. So it seems low resolution file showing pixelsa relative bit of information to pass along here to our blog reader friends.

There are two valid answers to this, depending on whether we look at this as a relative issue or a subjective one. As a relative issue, we use math to compare number of file pixels versus output resolution. Subjectively we look at quality as simply a matter of personal taste – what I like to call “The quality to pain threshold”. Or how big can we go before the quality drops to where it becomes painful to look at or pay for.

First, in either point of view, image quality is more than just the number of pixels contained in the medium resolutionfile. For a simple example; a modern 24 mega-pixel file shot out-of-focus will be of lesser quality than a properly focused 4 mega-pixel file.

Let’s look at the relative approach first, since most folks like easy and firm answers, such as 2+2 always = 4, and George Washington was the first US prez.

The easy answer is achieved with simple math:

File pixel dimension ÷ minimum input resolution = output dimension.

Consider this:
The example camera has a pixel dimensions of 2000×3000 (6 mega-pixel)
and the example device wants a minimum of 300 ppi (pixel per inch) file resolution.Full resolution file uncropped

2000÷300 = 6.66″
3000÷300 = 10.00″
The largest maximum quality print size would be: 6.67″ x 10.0″

If your printer recommends a minimum of 150 ppi:

2000÷150 = 13.33″
3000÷150 = 20.00″
The largest minimum quality print size is 13.33″ x 20″

If your file is from a 24 mega-pixel camera with dimensions of 4000×6000:

4000÷150 = 26.66″
6000÷150 = 40.00″
The largest minimum quality print size would be 26.66″ x 40.00″

With the subjective approach, there are limited fixed answers. The size of output is usually limited by one or more of the following factors:

* The physical limitations of the printing device.
* Your budget.
* How ugly you are willing to accept it.

At some point the cost of the print will break your budget. That is a hard and fast limitation. So that’s easy – you can print as big as you want to go as long as you can afford the print.
The printing device or medium will support a maximum specific size. For instance, some ink jets will not print any larger than 40″ wide, but they will go several hundred inches long. You can’t go any larger unless you pick a different printing device or you print in multiple tiles and deal with matching the seams. If you are willing to do the latter, then your budget is again your limit.

The subjectivity comes in with your opinion. How big is too big before the quality drops below your level of acceptance – your threshold of pain. Or you might call it the “Yuck factor”. When you get to a level of enlargement that degrades the quality to a point where you don’t like the results, you have hit your threshold of pain. In essence, you see the print and say “Yuck! That’s one ugly print and I’m not willing to pay money for it”

What does the yuck point look like? I can’t answer that for you, only you can. My level of acceptability may be different than yours. A professional’s need for quality is likely higher than that of the average consumer due to experience and training. Because of this experience, the professional will usually hit his/her level of pain sooner than the consumer.