Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > TIFF Image conversion

Reply
Thread Tools

TIFF Image conversion

 
 
alastair
Guest
Posts: n/a
 
      07-12-2004
Hi,

I need to convert a 24-bit RGB TIFF image to an 8-bit RGB TIFF image.
I've tried using PIL and the convert() method - this allowed me to
convert to an 8-bit grayscale image, close but not exactly what I need


From what I've read, it doesn't look like I can do what I need in PIL.
Does anyone know of another method ?

Thanks,

Alastair.
 
Reply With Quote
 
 
 
 
Larry Bates
Guest
Posts: n/a
 
      07-12-2004
I think you could use netpbm to do the conversion.

http://netpbm.sourceforge.net/

I use it for a lot of my TIFF-work that PIL just
doesn't yet support. Wrap a function/class around
an os.system() call to execute it if you want to
call from Python.

HTH,
Larry Bates
Syscon, Inc.

"alastair" <> wrote in message
news: om...
> Hi,
>
> I need to convert a 24-bit RGB TIFF image to an 8-bit RGB TIFF image.
> I've tried using PIL and the convert() method - this allowed me to
> convert to an 8-bit grayscale image, close but not exactly what I need
>
>
> From what I've read, it doesn't look like I can do what I need in PIL.
> Does anyone know of another method ?
>
> Thanks,
>
> Alastair.



 
Reply With Quote
 
 
 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      07-12-2004
On 12 Jul 2004 07:57:40 -0700, (alastair)
declaimed the following in comp.lang.python:

> Hi,
>
> I need to convert a 24-bit RGB TIFF image to an 8-bit RGB TIFF image.


Pardon? The only color 8-bit formats I'm familiar with are those
using indexed color (primarily GIF, though PNG may also have that mode).
You are limited to only 256 discrete colors.

--
> ================================================== ============ <
> | Wulfraed Dennis Lee Bieber KD6MOG <
> | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <

 
Reply With Quote
 
Jeff Shannon
Guest
Posts: n/a
 
      07-12-2004
alastair wrote:

>Hi,
>
>I need to convert a 24-bit RGB TIFF image to an 8-bit RGB TIFF image.
>I've tried using PIL and the convert() method - this allowed me to
>convert to an 8-bit grayscale image, close but not exactly what I need
>
>
>


With the caveat expressed above (that there may well not *be* such a
thing as an 8-bit RGB TIFF), you may want to look into using ImageMagick
(and the Python API for it) for your image manipulation. See
www.imagemagick.org for more information.

Jeff Shannon
Technician/Programmer
Credit International


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert TIFF-YC to TIFF-RGB Rubaiyat of Omar Bradley Digital Photography 11 06-27-2010 04:23 PM
BMP to TIFF or TIFF to BMP- any loss? Jenna Topping Digital Photography 5 01-23-2005 01:18 AM
Tool for converting 12-bit TIFF images to 16-bit TIFF-images? Peter Frank Digital Photography 11 12-13-2004 02:41 AM
jpeg to tiff and back to tiff ARosenblat Digital Photography 6 01-09-2004 08:53 PM
Image::Info::TIFF - multi-page tiff images page count ifiaz Perl Misc 1 11-19-2003 05:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57