{"comment":{"created_at":"2011-10-09T20:22:03Z","body":"[springmeyer] So I figure this is either:\r\n\r\n 1) something amiss with the 'image.to_string()' method within mapnik on win32\r\n 2) a win32 bug in the mapnikserv.py code from mapnik-utils\r\n 3) an IIS cgi problem\r\n\r\nMy hunch would first be #3, then #2, then #1\r\n\r\nTo rule out #1 can you download and install nik2img __trunk__ from mapnik-utils? The default behavior of nik2img is to use the 'to_string()' method to print the image to STOUT. So, you can do something like:\r\n\r\n{{{\r\n$ nik2img.py -m mapfile.xml > your_image.png\r\n}}}\r\n\r\nThen let me know if that is garbled, then we'll move to the other options...","updated_at":"2011-10-09T20:22:03Z","url":"https://api.github.com/repos/artemp/trac2github/issues/comments/2339309","id":2339309,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"}},"action":"created","issue":{"number":225,"created_at":"2011-10-09T20:22:02Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Mapnik outputs garbled images to the browser when running as a CGI on WinXP. Closely examined, the image is clearly being rendered with the correct styling and data. Writing the same images to disk using Image.save or render_to_file produces the expected output. \r\nThis affects all image formats (jpg, png, png256) but only jpeg is displayed in the browser, with 'The image “http:/[...]” cannot be displayed, because it contains errors.' shown otherwise.\r\n\r\n== Steps to replicate ==\r\n*Install from the current Windows binaries (0.5.1). [[BR]]\r\n*Add a virtual directory to IIS, associate .py extension with Python.exe and set up script execution privileges[[BR]]\r\n*Place Mapnikserv.py and mapfile.xml in directory, modified to point to world_borders.shp (from: [http://mapnik-utils.googlecode.com])[[BR]]\r\n*Browse to default Mapnikserv.py url, changing format=png to jpeg\r\n\r\nThis will produce the attached output.","comments":2,"title":"Mapnik produces garbled images from CGIs running on Windows XP/IIS 5.1","updated_at":"2011-10-09T20:22:04Z","url":"https://api.github.com/repos/artemp/trac2github/issues/225","id":1858412,"assignee":null,"milestone":{"number":6,"created_at":"2011-10-09T19:01:22Z","due_on":"1970-01-01T09:20:38Z","title":"0.6.0","creator":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"url":"https://api.github.com/repos/artemp/trac2github/milestones/6","open_issues":1,"closed_issues":107,"description":"=== Summary ===\r\n\r\nThis release offers a great advancement in usability and features such as several new plugins, advanced symbolization, and ICU unicode support.\r\n\r\nOver 140 tickets were closed against this milestone, and builds across both linux, mac and windows should be working better than ever.\r\n\r\nWe also now have a fresh set of [http://svn.mapnik.org/trunk/docs/api_docs/python/index.html Python API Docs (Epydocs)].\r\n\r\nEnjoy,\r\n\r\nDane\r\n\r\n\r\n=== Highlights ===\r\n\r\n * New ICU unicode support via Artem's genius\r\n\r\n * [http://trac.mapnik.org/wiki/MapnikRenderers#Cairographics Cairo] rendering backend - thanks Tom!\r\n\r\n * XML [http://svn.mapnik.org/trunk/docs/api_docs/python/mapnik-module.html#load_map_from_string from a string] - wicked nice Jonb\r\n \r\n * Support for [http://trac.mapnik.org/wiki/RasterSymbolizer raster composing modes] targeted at hillshading - Nice Marcin!\r\n\r\n * Tons of [PluginArchitecture new plugins] - OSM (nick), Oracle, OGR, SQlite (kunitoki)\r\n\r\n * Big improvements to [UsingScons SCons] - experience it for yourself and build it :) (Thanks jbronn for the boost help)\r\n\r\n * In memory [http://trac.mapnik.org/ticket/192 PointDatasource ] for dynamically drawing geometries - lwu rocks!\r\n\r\n * Love for the OgcServer - thanks xcacou, tmcw, and theo - it works with OSM xml, WMS 1.3.0, and a whole lot more.\r\n\r\n * We've got FontSet support (fallback fonts) from Beau- nice stuff\r\n \r\n * [http://trac.mapnik.org/ticket/117 ProjTransform] exposed by Artem in python. Now you can transform bbox's between projected systems.\r\n\r\n * Mapnik is faster (#156) with projections and PostGIS (#139,#140,#141) thanks to the genius of Rcoup\r\n\r\n * Map buffers to avoid cut labels - thanks Artem!\r\n\r\n * Transparent Point Symbolizers - good stuff Brian!\r\n\r\nFor a full list of major changes see the 0.6.0 Changelog wiki:Release0.6.0\r\n\r\n","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/artemp/trac2github/issues/225","labels":[{"name":"Core_Library","url":"https://api.github.com/repos/artemp/trac2github/labels/Core_Library","color":"FFFFFF"}],"state":"open"},"legacy":{"issue_id":1858412,"comment_id":2339309}}