tests/webp/bug00111.c
raw| 1 | #include "gd.h" |
| 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
| 4 | #ifndef _WIN32 |
| 5 | # include <unistd.h> |
| 6 | #endif |
| 7 | #include "gdtest.h" |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | gdImagePtr im; |
| 12 | FILE *fp; |
| 13 | |
| 14 | im = gdImageCreateTrueColor(20, 20); |
| 15 | if (!im) { |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | fp = gdTestTempFp(); |
| 20 | gdImageWebp(im, fp); |
| 21 | fclose(fp); |
| 22 | |
| 23 | gdImageDestroy(im); |
| 24 | return 0; |
| 25 | } |