Home Articles Forums Gallery Marketplace Videos

WoodCentral Forums

Knowledge You Can Build On — Est. 1998

Want Better Milling & Firewood Knowledge?

Photography tip? GE "Reveal" bulbs (pics)

Posts

Re: Photography tip? GE "Reveal" bulbs (pics)

#26

native format - some details, as I know them

John K Jordan

>>The best save is in your editor's native format, whatever

>that might be. Any conversion from the native format,

>which is what the photo is in while it is being edited,

>back to any different photo format will result in distortion/loss...

>

>TIFF conversion retains more data than JPG but its not

>as good as native.

Actually, this is a misconception I’ve seen before but it's not accurate. BTW, my profession is "computer graphics", more or less, at the Oak Ridge National Laboratory in TN (and close to retirement!)

The big difference is between file formats is between those with "LOSSY" compression and those with "LOSSLESS" compression. Formats like TIFF, TGA, PNG, PSD and others are lossless. The common JPEG format is lossy but to confuse things, new standards, i.e. JPEG-2000, do permit lossless compression and some, i.e., JPEG-LS are "lossless/near-lossless", whatever that means.

In a lossess format, pixels are stored without compromise and can be loaded, stored and converted between different lossless formats as often as desired without any loss of data, i.e., image degradation.

Lossy formats, like JPG, throw away data as they compress the file. In a nutshell, they try to determine what things in an images would be missed the least and kick them out. This is what allows a 1 megabyte image to be saved as a 80K file and still be recognizable. Every time a JPG file is saved, the compression algorithm takes a fresh swat at the data and the image is further degraded. The JPG file loading process itself doesn't destroy any ADDITIONAL data, neither does saving as a lossless file format. Editing the the data in a JPG file already loaded doesn't destroy data any more than editing a loaded TIF or PSD file - it's the compression at save time that does the deed. Note that the level of compression (quality setting) you choose at save time can make a huge difference.

The only real difference between the lossless file formats is in the header bits and data organization. You can test this easily – convert a file sequentially to a number of different formats and then back to the original format and do a binary comparison between that file and the original. The native format any graphics program uses comprises a binary header describing how the bytes are stored in the file and a block of code to read and write the data file. Once loaded, any image data is basically stored internally the same way, as a big numerical array. (In my previous career as a hard-core software designer/developer, I sometimes wrote code to store and process image data, for example for machine vision and image analysis systems.)

TIFF files are just as good as any other lossless format regardless of whether the format is native or not to a particular graphic program. However, there is a historical problem with TIFF which may have caused some confusion. TIFF tried to be all things to all people so it was designed to be freely extensible. This lead to many compatibility problems as a variety of “flavors” of TIFF were used by companies and released on the public. For years, I avoided TIFF for this reason. As Photoshop became the standard for professional graphics, TIFF became far more reliable. Note that TIFF is traditionally an uncompressed format but today is commonly used with a lossless compression option. Be aware that there ARE rarely used TIFF lossy compression flavors. TIFF can be used as a “container” for JPG and other compression algorithms. To add to the confusion, TIFF files can be stored in different byte orders which can cause compatibility problems between Mac and Windows platforms. Some programs can save in either format. Here again it Photoshop us useful since it can save or load either format on either platform – we regularly pass TIFF files sized in the hundreds of megabytes between graphic artists without issue. Note that regardless of incompatibilities, a TIFF file can always be loaded back into the same program that saved it. BTW, for my 3D computer animation work I generally use (lossless) compressed TGA files.

BTW, there are a few other deep dark secrets in digital processing and display. One is gamma, the hardware-specific conversion of digital pixels to and from something you can view with your eyes. Gamma determines brightness conversion and by association, color. Some software apps store gamma internally in SOME file formats much to the horror of unsuspecting users. What’s worse, Mac traditionally uses a different monitor display gamma than Windows so some users may see images much lighter. Video (as in tape and DVD) uses a different gamma than a PC monitor. Another HUGE issue is monitor/printer/scanner calibration. If your monitor is not calibrated properly, what you see on your monitor is not what the rest of the world sees, regardless of the care you use in file formats and image processing. But I digress – this is extremely important but getting off the subject.

Digital cameras complicate the image quality issue since most store images in a JPG format. In this case, as John Lucas implied, it is best to load the JPG image into some program and IMMEDIATELY save it as TIFF or some other lossless format. Do your edits, save intermediate and final versions as TIFF or other lossless format (BEFORE resampling/resizing and sharpening!), then convert and save as JPG at the very end. (Right after the final step of sharpening, as Mike pointed out.) Keep the original and final (full size/unsharpened) TIFF files around in case the image needs to be worked on again. The number of versions I keep depends on the projected importance and possible future use and how much work I have in edits!

For better quality, many digital cameras allow you to store images internally as TIFF instead of JPG. This improves quality but at the expense of HUGE file sizes. (Although cards are getting larger and cheaper, how many 18 meg files will fit on one card and how long will they take to download?) Try it to see how many TIFF photos your camera can save on your card. For all but the finest large-scale professional work, I think the TIFF format is unnecessary in the camera. For images primarily intended for display on the web as on WoodCentral, this is really unnecessary, IMHO. For the purist, some cameras also provide a RAW format which can provide better color processing, but at the further expense of a huge amount of hassle. Another story.

For casual work, it is even entirely reasonable to stick with JPG files if you save at the highest quality and don't edit TOO many times. A little hint - when I edit and save a JPG, I append letters on the end of a file name to code the changes: I add "e" for edits, "s" for resizing, "c" for cropping, etc. This makes sure I don't accidentally overwrite the original file with a slip and makes it easy to distinguish between versions on the disks.

The above is a gross simplification of the whole story. But for the casual user, it is safe to freely use TIFF files for archival work. It is also not necessary but safe to use a graphic program's native format, as long as that format is not lossy.

JKJ in East TN

PS: If you have questions about specific file formats from specific programs, I’d gladly run tests and do binary comparisons. (This is the kind of thing I do for fun in my spare time? - ack!) I don’t use GIMP any more, but I could probably load it for testing.

PPS: To open a real can of worms, let's talk about DPI.

PPPS: Sorry for the long post, but to put it in perspective it's only 8K of text data, 1/10th the size of one typical WoodCentral Turning image! :)

Re: Photography tip? GE "Reveal" bulbs (pics)

#27

attention articles department!

Mike Schwing from Md.

>This should be in an article!

Thank you John! I think I found a new "go to" guy for digital editing issues!

Re: Photography tip? GE "Reveal" bulbs (pics)

#28

Re: JPEGs, PSDs, TIFFs - say what?

Ron in Drums PA

>Right now I'm using PhotoShop CS2. I've been using PhotoShop since version 3. When I first started using this software, saving in the native file (PSD) was an enhanced TIFF file with the ability to save changes for redos. I never work with PSDs unless it's to convert them to TIFFs, so I assumed this didn't change, but you are right, that feature no longer exists in the newer versions.

From what I see on my end, PSD still has embedded TIFF images and the PSD file is larger than a TIFF file. That may not be a problem for some, but I get PSD files from my customers that exceed 100 meg each. When I save them as a TIFF file and use LZW compression, they are anywhere from 25% to 50% of its size. When I send files to my imagesetter, it takes 10% (+/-) of the time to process (RIP) TIFF files than it does with PSD files. That is why I called PSD a bloated file.

BTW did you know EPS files can either be vector graphics, TIFF or JPG? I get customers who will "borrow" a 72 dpi JPG off the web, increase it to 300dpi, enlarge it 400% then convert it to an EPS file and wonder why it still doesn't work.

Re: Photography tip? GE "Reveal" bulbs (pics)

#29

Re: native format - some details, as I know them

Ron in Drums PA

>Thanks John, there is a lot of good information there.

Here is a link to a PDF file (1.3 meg) that I created a couple of years ago to hand out to my customers.

http://tinyurl.com/bakn6

Re: Photography tip? GE "Reveal" bulbs (pics)

#30

Re: native format - some details, as I know them

John Lucas

>Whew, I'm going to stay behind the camera where at least I think I know what I'm doing. Of course as the cameras get more complicated even that is getting difficult. I like my view camera. It does what I ask of it and nothing else.

Re: Photography tip? GE "Reveal" bulbs (pics)

#31

Re: JPEGs, PSDs, TIFFs - say what?

John K Jordan

>>When I send files to my imagesetter, it takes 10% (+/-) of

>the time to process (RIP) TIFF files than it does with PSD files.

We also generally use TIFF for print work rather than PSD files. I assumed the quicker processing time was because the rasterizing engine didn't have to flatten the image (condense all the layers, masks, and other data) which can take a significant amount of time for a large file. I haven't tried a TIF with layers. There is a compatibiliy issue as well - the new Photoshop CS even gives a compatibility warning and option at save time.

>BTW did you know EPS files can either be vector graphics,

>TIFF or JPG?

Yes, EPS is another "container" for both vector and raster images. The same file can include both, as well as a thumbnail image. We get confusion all the time from secretaries and scientists alike who want to play graphic artist without going to the trouble of actually learning something! What is even worse is DPI confusion which is also rampant in circles where people should really know better, such as professional print shops and among career graphic artists. When someone says "Give me a 300 dpi image" you can almost bet they are repeating a mantra they learned in school and don't really know what they are talking about.

BTW, have you ever used Genuine Fractals? It's a plugin that runs within Photoshop and uses heuristics to invent data when enlarging images. It is not the best for all images, but in general it does a pretty good job. I've used it when I need to create a large print from a limited original. I did some comparison tests at one time on one of my images, in this case 3D renderings overlaid on an existing aerial photo: http://www.ornl.gov/jkj/interp/

JKJ in East TN

Re: Photography tip? GE "Reveal" bulbs (pics)

#32

Re: native format - some details, as I know them

JamieDonaldson

>Hey John- have you used that view camera's Schiempflug correction lately???

Re: Photography tip? GE "Reveal" bulbs (pics)

#33

Re: native format - some details, as I know them

John K Jordan

>>I like my view camera. It does what I ask of it and nothing else.

You use film? I have a 4x5 Crown Graphic in pristine condition I'll probably never use again. (I sold the enlarger and darkroom last year.) Perhaps you would like to expand your collection some day.

JKJ in East TN

Re: Photography tip? GE "Reveal" bulbs (pics)

#34

Re: native format - some details, as I know them

Ron in Drums PA

>I have a 4"x5" Speed Graphic in top shape also. Along with full darkroom pasked away.

Re: Photography tip? GE "Reveal" bulbs (pics)

#35

Re: Photography tip? GE "Reveal" bulbs (pics)

Ned Bulken

>yep, pretty much where I ran them too, I was a contract based road-warrior doing photos at country clubs and I ran a three light set up, main, fill and either feather or hairlight accent light depending on situation. I miss those days, but am glad I'm not footing my own fuel bill right now.