Strange imagetype/outputformat behaviour

Gambin Dejan Dejan.Gambin at PULA.HR
Fri Jul 13 04:17:19 PDT 2007


Hi,

Maybe someone can explain my imagetype/outputformat behaviour. I am
displaying a set of RGB tif rasters. I set:

IMAGETYPE png
OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
OUTPUTFORMAT
  NAME png8
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
END
END

The resulting 556x424 png image is 303KB in size. When setting some user
defined IMAGETYPE/NAME, for example:

IMAGETYPE custom
OUTPUTFORMAT
  NAME custom
...
 I get a much worse display,  and the png file is 53KB in size. Is it
allowed to set the custom names here?

Also, I get the same result with png8 and png IMAGETYPE. I don't know
why? Maybe I am missing something?

regards, dejan



More information about the MapServer-users mailing list