You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
269 B

11 years ago
#include <gd.h>
#include "main.h"
#include "image.h"
int main(int argc, char **argv) {
gdImagePtr img = NULL;
char *err;
img = image_from_file("test.png", &err);
if (img == NULL) {
printf("%s\n", err);
exit(EXIT_FAILURE);
}
exit(EXIT_SUCCESS);
}