[Image-SIG] Working with odd display formats...

Jason Bredice jabredic at adobe.com
Tue Jun 26 17:44:06 CEST 2007

Hi all,


I'm working on a WinXP machine and I have a pixel array that's in 16bit
RGB444 format (from a Nokia S60 phone), which I've been trying to use
PIL to save it off as a TIFF file.  Of course this format is not
supported in unpack.c and so far I've tried the following:


1)       Using other formats supported by the "raw" decoder (which
generates a recognizable image but it's a mess).

2)       Using the "bit" decoder with every conceivable combination of
parameters with worse results than above.

3)       Adding a new function to unpack.c and recompiling the library
(had to install mingw32 and so far haven't had much success using PIL at
all after making my changes).


I've had great success dealing with other more standard 16bit formats,
such as RGB555 and RGB565.  Does anyone know if there is a good way to
handle non-standard display formats with PIL?  Perhaps I should be using
a different module to approach this problem?


Any help is greatly appreciated!




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20070626/696235b1/attachment.html 

More information about the Image-SIG mailing list