[ka-Map-users] imageformat

Paul Spencer pspencer at dmsolutions.ca
Mon Jan 7 14:08:52 EST 2008

It should be "JPEG" (with the E) but I hope this is just a typo since  
PNG24 didn't work either.  The way that code works is that it ends up  
calling setOutputFormat in config.php with the format type and sets up  
a bunch of variables that are used when rendering in tile.php.  I know  
that true colour output works (jpeg and png24) so I'm sure it is not a  
problem with the code but rather some sort of configuration issue.  If  
MapServer is choosing png8 then that is probably the default output  
format for MapServer and something.

Some things to check.  Make sure you have JPEG and PNG24 support in  
mapserv/php_mapscript by checking the MapScript section of the output  
of phpinfo() ...

dl('php_mapscript.so'); //replace with whatever will load mapscript

Confirm that you can get mapserv to output a jpeg or png24 using  


On 7-Jan-08, at 4:46 AM, R. Ortner wrote:

> Hi,
> I´m trying to display some high resolution images as jpeg or png24  
> in ka-map
> with several other vector layers(png).
> For that i added the "imageformat" "JPG"  (or "PNG24") into the  
> metadata
> section of the image layer.
> The result is allways, no matter what I change a 8-bit png image  
> that looks
> like this sample:
> http://www.nabble.com/file/p14661679/sample.png
> I´m sure u all will agree that this is not acceptable for an high  
> quality
> image...
> When I use Firebug and display a single tile of the image seperatly
> ( 
> )
> or
> (when I use JPEG nothing is displayed);
>> fyi: I have the Outputoptions for JPEG and PNG24 in my mapfile:
>> NAME jpeg
>> MIMETYPE "image/jpeg"
>> EXTENSION "jpg"
>> END
> the result is allways the same, a 8-bit png. On top of the browser  
> in the
> titlebar: PNG-Grafik,256x256 pixel!
> What do I wrong or what can I do to display the images as 24 bit  
> image??
> -- 
> View this message in context: http://www.nabble.com/imageformat-tp14661679p14661679.html
> Sent from the ka-map-users mailing list archive at Nabble.com.
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                          pspencer at dmsolutions.ca    |
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |

More information about the ka-Map-users mailing list