void gdImageWebpEx ( | gdImagePtr | | im, | | FILE | * | outFile, | | int | | quality | ) |
|
gdImageWebpEx outputs the specified image to the specified file in WebP format. The file must be open for writing. Under MSDOS and all versions of Windows, it is important to use “wb” as opposed to simply “w” as the mode when opening the file, and under Unix there is no penalty for doing so. gdImageWebpEx does not close the file; your code must do so.
If <u>quality</u> is -1, a reasonable quality value (which should yield a good general quality / size tradeoff for most situations) is used. Otherwise <u>quality</u> should be a value in the range 0-100, higher quality values usually implying both higher quality and larger image sizes.
Variants
gdImageWebpCtx stores the image using a gdIOCtx struct.
gdImageWebpPtrEx stores the image to RAM.
Parameters
im | The image to save. |
outFile | The FILE pointer to write to. |
quality | Compression quality (0-100). |
Returns
Nothing.