Mapserver Bug Report ==================== Python mapscript bug : When using driver AGG/PNG method imageObj.write() does nothing. Python 2.4.3 (#2, Oct 6 2006, 07:52:30) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mapscript import * >>> mapfile = mapObj('example.map') >>> mapfile.outputformat.name 'aggpng24' >>> img = mapfile.draw() >>> from StringIO import StringIO >>> buf = StringIO() >>> img.write(buf) 0 >>> len(buf.getvalue()) 0 >>> img.save('map.png') >>> f = file('map.png') >>> data = f.read() >>> len(data) 93560 >>> mapfile.selectOutputFormat('png') >>> img = mapfile.draw() >>> img.write(buf) 0 >>> len(buf.getvalue()) 18507 >>> msGetVersion() 'MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE'