blob: be24066ca2e6508aa066b37d53e69b8b93e85d6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <stdio.h>
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im;
FILE *fp;
char path[1024];
int error = 0;
sprintf(path, "%s/gif/bug00066.gif", GDTEST_TOP_DIR);
fp = fopen(path, "rb");
if (!fp) {
printf("cannot open <%s>\n", path);
return -1;
}
im = gdImageCreateFromGif(fp);
fclose(fp);
sprintf(path, "%s/gif/bug00066_exp.png", GDTEST_TOP_DIR);
if (!gdAssertImageEqualsToFile(path, im)) {
error = 1;
}
gdImageDestroy(im);
return error;
}
|