[mapserver-users] MS_PNG or MS_JPEG
Puneet Kishor
pkishor at GeoAnalytics.com
Mon Jul 30 11:34:35 PDT 2001
Jim,
Mapserver depends upon an external library called GD (available from
www.boutell.com) for generating images. GD was initially developed to
generate gifs, but when Unisys came down with their claim to gif, GD was
modified to stop making gifs. If you want gifs, you have to simply look for
the older version of GD (methinks v 1.2 and earlier -- still available in
many places) and compile Mapserver with that.
pk/
--
Puneet Kishor
pkishor at geoanalytics.com
www.geoanalytics.com
GeoAnalyics, Inc.
1716 Fordem Ave
Madison WI 53704
-----Original Message-----
From: Jim Burnett [mailto:jimburnett at ntelos.net]
Sent: Monday, July 30, 2001 10:29 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] MS_PNG or MS_JPEG
MS_PNG or MS_JPEG
int saveImage(string filename, int type, int transparent, int interlace,
int quality)
Writes image object to specifed filename.
Passing an empty filename sends output to stdout. In this case,
the PHP header() function should be used to set the documents's
content-type prior to calling saveImage().
Type can be either MS_PNG or MS_JPEG
Quality should be a value in the range 0-95, higher value implies
higher image quality and larger image sizes.
If quality is negative, then the default IJG JPEG quality value is
used.
The function returns -1 on error. On success, it returns either 0
if writing to an external file, or the number of bytes written if
output is sent to stdout.
no GIF support?
-jim
More information about the MapServer-users
mailing list