AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.04.16 13:26 "efficient thumbnailing", by Dr Michael J Chudobiak
2008.04.16 14:55 "Re: efficient thumbnailing", by Seth Price
2008.04.16 16:05 "Re: efficient thumbnailing", by Phillip Crews
2008.04.16 19:01 "Re: efficient thumbnailing", by Dr Michael J Chudobiak
2008.04.16 15:19 "Re: efficient thumbnailing", by <jcupitt@gmail.com>
2008.04.16 16:52 "Re: efficient thumbnailing", by Kai-uwe Behrmann
2008.04.16 17:29 "Re: efficient thumbnailing", by Dr Michael J Chudobiak
2008.04.16 19:37 "Re: efficient thumbnailing", by Kai-uwe Behrmann
2008.04.17 12:08 "Re: efficient thumbnailing", by Dr Michael J Chudobiak
2008.04.17 06:02 "Re: efficient thumbnailing", by Joris Van Damme
2008.04.17 11:57 "Re: efficient thumbnailing", by Dr Michael J Chudobiak
2008.04.17 13:48 "Re: efficient thumbnailing", by Joris Van Damme

2008.04.17 06:02 "Re: efficient thumbnailing", by Joris Van Damme

Mike,

Dr. Michael J. Chudobiak wrote:
> Is there an efficient way to generate thumbnails from tiff files?

Stating the obvious but much neglected, make sure you use all and any 
thumbnails present in the file for starters.

One source of thumbnails or downsampled copies is the SubIFD child IFDs. A 
less known and older (and regrettable and discouraged) way to encode 
thumbnails, that is still in use today, is linking additional IFDs in the 
same main linked list, marking them as downsample with the SubfileType or 
NewSubfileType tags (see 
http://www.awaresystems.be/imaging/tiff/tifftags/search.html?q=subfile&Submit=Find+Tags).

There exist other common encodings of thumbnails, as some vendors seem to 
think embedding thumbnails is only usefull to themselves and therefore does 
not need to comply to a public standard. Regrettably, Adobe is amongst them. 
It's not uncommon to find the only source of thumbnail available is inside 
the Photoshop tag (see 
http://www.awaresystems.be/imaging/tiff/tifftags/docs/photoshopthumbnail.html).

> The jpeg loader uses some fast-scaling trickery to scale down by a
> factor of 2, 4, or 8 first (http://sylvana.net/jpegcrop/djpeg) - I was
> wondering if there is a tiff equivalent.

LibJpeg is able to do this because of specific properties of the JPEG 
compression format. Few other compression formats can serve equally 
naturally in decoding to a scaled down version (without actually doing a 
full decoding and subsequent rescaling cycle, that is).

Of course, at least for TIFF IFDs with JPEG compression, we could 
theoretically support exactly the same...


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html