[Image-SIG] Sun Rasterfile support broken in 1.0b1

Fredrik Lundh fredrik@pythonware.com
Wed, 10 Feb 1999 10:08:24 +0100


>I just came across this, when running a script to batch-convert some
>older Sun .RAS files to a different format:

probably the same problem as with 8-bit PCX files (a
change in Unpack.c made it less tolerant for mode/raw-
mode mismatches -- I thought I'd fixed all of them before
the release, but I obviously missed a few...)

try changing:

	    if self.mode == "L":
		self.mode = "P"

to:

if self.mode == "L":
self.mode = rawmode = "P"

Cheers /F
fredrik@pythonware.com
http://www.pythonware.com