[mapserver-users] MS_PNG or MS_JPEG

Jim Burnett jimburnett at ntelos.net
Mon Jul 30 08:29:26 PDT 2001


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010730/e072c0bc/attachment.htm>


More information about the MapServer-users mailing list