/* $Id$ */ #include "gd.h" #include #include #include "gdtest.h" int main() { gdImagePtr im; FILE *fp; char path[1024]; gdSetErrorMethod(gdSilence); sprintf(path, "%s/png/bug00033.png", GDTEST_TOP_DIR); fp = fopen(path, "rb"); if (!fp) { printf("failed, cannot open file <%s>\n", path); return 1; } im = gdImageCreateFromPng(fp); fclose(fp); if (im) { gdImageDestroy(im); return 1; } else { return 0; } }