newbe- mapscript /pil

Didrik Pinte dpinte at ITAE.BE
Wed Jul 13 08:56:09 EDT 2005


Le mercredi 13 juillet 2005 à 07:26 -0500, Richard Alexander a écrit :
> thanks Didrik,
> 
> yes it is a fault in the code  - but not the one that causes the PIL
> error...I copied out the code wrongly !
> 
> The PIL problem with the PNG seems very odd to me because the PNG image
> produced does open in Gimp...and if I save it as tmp2.png from Gimp, it will
> then open from PIL !
> 
> If I use file objects instead of images I get the same problem.
> 
> Does the code work for you at all with mapscript ?
> 
> RA

Got it --> PIL does not support PNG that are interlaced !

You need to change your outputformat to :

        # PIL does not support interlaced images !!!
        OUTPUTFORMAT
                NAME png
                DRIVER "GD/PNG"
                MIMETYPE "image/png"
                IMAGEMODE RGB
                EXTENSION "png"
                FORMATOPTION "INTERLACE=OFF"
        END


Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050713/9b790e4f/attachment.bin


More information about the mapserver-users mailing list