[Chameleon] Setting quality for JPEG output
Jason Grimes
jgrimes at gi.alaska.edu
Fri Jul 8 18:40:34 EDT 2005
Hi Tyler,
You set this with FORMATOPTION in the OUTPUTFORMAT block of your map
file. Here is what I have mine set to...
IMAGETYPE jpeg
IMAGECOLOR 255 255 255
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
FORMATOPTION "QUALITY=100"
END
The IMAGETYPE must match the NAME in OUTPUTFORMAT.
Jason G
On Fri, 2005-07-08 at 11:20, Tyler Mitchell wrote:
> Jacob,
> I just discovered your drawmap mods for setting imagetype based on layer
> metadata -- very good!
> http://lists.maptools.org/pipermail/chameleon/2004-August/001253.html
> It is just what I have been needing.
>
> Does anyone know if I can set the compression/quality for JPEG output?
> I know how I'd do it in a map file, but $szImgType in drawmap.php seems
> to only refer to image format, not sub-settings for that format.
>
> Can anyone give me some pointers?
>
> Tyler
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list