[Mapserver-users] Cant change IMAGETYPE on map file

Sarawut Ninsawat sarawut@ait.ac.th
Wed, 14 May 2003 14:37:36 +0700


Dear All

I already setup mapserv 3.6 with gif support on Linux RH 8.0 by Wiki 
instruction.. everything is fine.
But yesterday I try to set temporary image output to jpeg or png by 
modified map file
From
IMAGETYPE png
To
IMAGETYPE jpeg

But it does not work. the ouput still gif file format
After that I modifier in php3 file to use $gAppletImgFmt = Ms_JPEG instead 
of Ms_PNG. It's work

Is this a bug or anything wrong with my configuration.

/* ==================================================================== */
/* Find out whether GIF is supported... if not falback on PNG/JPG       */
/* ==================================================================== */
if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 )
{
   $gAppletImgFmt = MS_GIF;
   $gImagesFmt = MS_GIF;
else
{
   $gAppletImgFmt = MS_JPEG;
   $gImagesFmt = MS_PNG;
}

Best Regard

Sarawut


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users