Fredrik Lundh writes: > try changing: > > if self.mode == "L": > self.mode = "P" > > to: > > if self.mode == "L": > self.mode = rawmode = "P" That indeed fixes the problem with Sun Rasterfiles. Thanks.