Re: [MapServer-users] Mapserver 8 , PHP map script cannot print image

2023-10-26 Thread Jeff McKenna via MapServer-users
Hi Vassilis, You are missing after the draw() the following: //send image to stdout (browser), without saving file locally echo $oImage ->getBytes(); I also prefer to set the header right before that getBytes() call. For a full working example, you can use the quickmap.php file that is

[MapServer-users] Mapserver 8 , PHP map script cannot print image

2023-10-26 Thread Vassilis Chatzigiannakis via MapServer-users
Dear all, We are using Mapserver 8.0.1 with PHP and the php_mapscriptng extension. I am having a hard time outputting the image to the browser. In the following code snippet, saving to disk works but mapscript.imageObj.write does not output the image in the browser. header('Content-type: