[mapserver-users] Corrupted PNG issue

John Huotari John.Huotari at RCIS.com
Mon Nov 22 13:26:55 PST 2021


I created a .map file that only referenced a single layer - a Shapefile from the local disk (of US States from the Census) and used mapserv.exe –nh and the query string you list below.  The issue with it producing an invalid PNG occurs with that as well.  The resulting PNG has the same issue of the 0a (or 10 in decimal) in the header having been converted to 0d 0a (or 13 10 in decimal).

From: Steve Lime <sdlime at gmail.com<mailto:sdlime at gmail.com>>
Sent: Monday, November 22, 2021 10:17 AM
To: John Huotari <John.Huotari at RCIS.com<mailto:John.Huotari at RCIS.com>>
Cc: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: [EXTERNAL] Re: Re: [mapserver-users] Corrupted PNG issue

John: What happens if you take WMS out of the equation, so:

  mapserv.exe -nh "QUERY_STRING= map=dynamic\5708d96b-c606-4c35-95e7-085fedc1dcce.map&mode=map" > test.png

--Steve

On Fri, Nov 19, 2021 at 1:01 PM John Huotari <John.Huotari at rcis.com<mailto:John.Huotari at rcis.com>> wrote:
Thanks for the feedback Jukka, Steve, and Seth.

Using mapserv.exe –nh at the command line produces the same corrupt PNGs as I get through a web server.

Using MapServer 7.7.0dev from MS4W as Jukka suggested produces good PNGs, so that’s a viable alternative for me.

I’ve done some playing around with different versions available from GISInternals and it appears that PNG images generate fine up through their GDAL 3.2.1 and MapServer 7.6.2 version (release-1900-x64-gdal-3-2-1-mapserver-7-6-2), but started producing corrupt PNGs in their GDAL 3.2.2 and MapServer 7.6.2 version (release-1928-x64-gdal-3-2-2-mapserver-7-6-2).

If anyone with Windows wants to attempt to reproduce, the older GISInternals versions are available here: https://www.gisinternals.com/archive.php<https://urldefense.com/v3/__https:/www.gisinternals.com/archive.php__;!!G6MNE2S8Nw!yKVpnWeQRQpd5FXwJvsTNO7IpTuIOVg8QYRG9-p9lWYqqKFewNS1eLtiavz38L7P$>


******************* PLEASE NOTE *******************
This message, along with any attachments, is for the designated recipient(s) only and may contain privileged, proprietary, or otherwise confidential information. If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Any other use of such misdirected e-mail by you is prohibited. Where allowed by local law, electronic communications with Zurich and its affiliates, including e-mail and instant messaging (including content), may be scanned for the purposes of information security and assessment of internal compliance with company policy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20211122/290e8f3e/attachment.html>


More information about the MapServer-users mailing list