[Image-SIG] raw decoder change 0.3a4 -> 1.0b1
Rob Hooft
r.hooft@euromail.net
Thu, 14 Jan 1999 15:10:20 +0100 (MET)
With 0.3a4, I could do:
im=Image.fromstring("P",(self.h.xsize,self.h.ysize),
data.astype(Numeric.Int8).tostring(),"raw","L")
im.palette=Palette(self.palette)
This now gives a "ValueError" exception. I currently (1.0b1) have the code:
im=Image.fromstring("L",(self.h.xsize,self.h.ysize),
data.astype(Numeric.Int8).tostring(),"raw","L")
im.mode="P"
im.palette=Palette(self.palette)
Just to make sure: is this "proper-PIL" coding? Any cleaner alternatives?
Rob
--
===== R.Hooft@EuroMail.net http://www.xs4all.nl/~hooft/rob/ =====
===== R&D, Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ========================== Use Linux! =========