[Image-SIG] PIL decoders

Bob Ippolito bob at redivi.com
Sat Jul 17 21:04:35 CEST 2004


I've written a pure python decoder for (the 24bit RGB and 8bit mask 
resources in) the Mac OS .icns resource format.  The format can contain 
icons and masks of various different sizes and bit depths.  If I were 
to turn this into a PIL decoder, what is the correct way to deal with a 
file that can contain multiple resources?  Should it just pick the best 
representation?

Also, what's the procedure for getting new codecs into the official 
distro of PIL?  I wouldn't mind contributing this one, and I have a 
SoftImage PICT (another lossless RAW/RLE) decoder lying around as well 
that might be useful to someone.

BTW, the SoftImage image format allows for 8 channels (the usual BGRA 
plus shadow, depth, aux1, aux2).  The current decoder just ignores 
them, because I didn't see any good way to get those into PIL (given 
the limited mode choices).  Is there something else I should do with 
them?

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3589 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20040717/c6ca0eb7/smime.bin


More information about the Image-SIG mailing list