Re: Converting TIFF files to PDF and/or JPEG

2006-01-18 Thread sophie_newbie
Hmm, does anyone know if there is a way to uncompress Tiff files in python itself without having to make an os call. This is because the script is kind of supposed to run on windows also... Sophie. -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting TIFF files to PDF and/or JPEG

2006-01-17 Thread [EMAIL PROTECTED]
The Tiff library and utilities combined with Ghostscript make this very easy. http://www.remotesensing.org/libtiff/ http://www.cs.wisc.edu/~ghost/ With the above two packages installed, you can do something like this in Python: def tiff2pdf(width, length, files): path, filename = os.pat

Re: Converting TIFF files to PDF and/or JPEG

2006-01-17 Thread Paul Rubin
"sophie_newbie" <[EMAIL PROTECTED]> writes: > It looks like this odd compression format is not supported, or am i > wrong? > > I know its a long shot but would anyone have a different solution? I don't know about doing it directly in Python but there's a Linux command line utility called tiff2ps

Re: Converting TIFF files to PDF and/or JPEG

2006-01-17 Thread Fredrik Lundh
"sophie_newbie" <[EMAIL PROTECTED]> wrote: > As part of a college project I'm trying to write a script to convert > TIFF images downloaded from the US patent office site, www.uspto.gov. > > The tiff images are encoded using CCITT Group 4 compression and appear > to throw an error when i try to sav

Converting TIFF files to PDF and/or JPEG

2006-01-17 Thread sophie_newbie
Hey guys, As part of a college project I'm trying to write a script to convert TIFF images downloaded from the US patent office site, www.uspto.gov. The tiff images are encoded using CCITT Group 4 compression and appear to throw an error when i try to save them using the Image library: >>> im.sa