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.16 15:19 "Re: efficient thumbnailing", by <jcupitt@gmail.com>

2008/4/16 Dr. Michael J. Chudobiak <mjc@avtechpulse.com>:
>  Is there an efficient way to generate thumbnails from tiff files?

You don't need to load the whole thing into memory, you can loop over
an image a scan-line at a time with TIFFReadScanline(). Something
like:

for line in image step shrink-factor:
  for y in shrink-factor:
    TIFFReadScanline()
    horizontal shrink line by shrink-facto
  vertical shrink set of horizontally shrunk lines
  output line of shrunk image

You still have to read the whole file, of course, but it shouldn't
need much memory.

John