blob: 93b646dfd974cc2e16169c7037e4024e60e510bf (
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
|
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im;
FILE *fp;
char *path;
fp = gdTestFileOpen2("tiff", "tiff_read_bw.tiff");
gdTestAssert(fp != NULL);
im = gdImageCreateFromTiff(fp);
fclose(fp);
gdTestAssert(im != NULL);
gdTestAssert(!gdImageTrueColor(im));
path = gdTestFilePath2("tiff", "tiff_read_bw_exp.png");
gdAssertImageEqualsToFile(path, im);
gdFree(path);
gdImageDestroy(im);
return gdNumFailures();
}
|