IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

jmckenna
Administrator
Jukka on the MapServer-users mailing list pointed out recently (http://osgeo-org.1803224.n2.nabble.com/MS-6-0-beta4-is-image-jpeg-output-OK-td6265200.html) that any 6.0 mapfile that tries to output a jpeg image ('image/jpeg') creates an invalid empty image with MS4W.

Short version:
Please everyone test this patch for jpeg and your preferred output formats and provide feedback (http://www.maptools.org/dl/ms4w/mapserver_ms4w-6.0.0-beta6-patch.zip)

Long version:
Through the ticket (http://bugzilla.maptools.org/show_bug.cgi?id=2313) and on IRC chat we narrowed it down to the GD library: in fact GD was pointing to a non-existent JPEG version, 6b, but MapServer was built against a newer JPEG version, 8b, and JPEG wasn't happy about this.  So a patch is now available that upgrades your JPEG library to 8c and contains a rebuilt GD version, pointing to that new JPEG version. Please test it with jpeg output (in any mapfile, specify 'IMAGETYPE image/jpeg' and then test with 'shp2img -o test.jpg').  While you're at it, give it a test in your other favourite output formats as well.

I apologize for any inconvenience.  I guess it is a good thing this was discovered in the 6.0 beta phase, before a full MS4W version was released.

Again thanks to Jukka for reporting this!

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




Reply | Threaded
Open this post in threaded view
|

Re: IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

andrew_peru
I can confirm that jpeg images do not display without patch
and they do display with the path
Reply | Threaded
Open this post in threaded view
|

Re: IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

andrew_peru
oops, I mean jpeg does display with the PATCH
Reply | Threaded
Open this post in threaded view
|

Re: IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

jmckenna
Administrator
andrew_peru wrote
oops, I mean jpeg does display with the PATCH
Thanks for testing so fast Andrew.  Let me know if you find any other issues.  

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/ 
Reply | Threaded
Open this post in threaded view
|

Re: IMPORTANT: JPEG Output broken in MS4W 6.0 betas (patch ready)

mojtabajml
In reply to this post by jmckenna
I install tis version and now I have "Internal Server Error"
error log:
[Mon May 02 13:12:13 2011] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe