[Mapserver-users] Cant change IMAGETYPE on map file
Sarawut Ninsawat
sarawut at ait.ac.th
Wed May 14 00:37:36 PDT 2003
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
More information about the MapServer-users
mailing list