Personal tools
You are here: Home Documentation FAQs

Why doesn't PIL (Python Imaging Library) open my PNGs?

Document Actions
Up to table of contents
Why doesn't PIL (Python Imaging Library) open my PNGs?

PIL does not support interlaced PNGs at this time (no timetable on when it actually will either). To be able to read PNGs in PIL, they must not be interlaced. Modify your OUTPUTFORAT with a FORMATOPTION like so:

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
  FORMATOPTION "INTERLACE=OFF"
END

This FAQ applies to: MapServer 4.0, MapServer 4.2, MapServer 4.4, MapServer 4.6, MapServer 4.8

by Howard Butler last modified 2005-11-29 20:57

Powered by Plone