summaryrefslogtreecommitdiff
path: root/src/webpng.c
diff options
context:
space:
mode:
authorpierre <none@none>2006-04-05 15:44:17 +0000
committerpierre <none@none>2006-04-05 15:44:17 +0000
commitb623f93e3012b96b8aec68fbb64b1815af56601d (patch)
tree7bf5d886b3e91f484f5b05c07581d33bfe1d2ead /src/webpng.c
parent9403f3ad120b62d3f3b57bd99bf591914918ac7f (diff)
downloadlibgd-b623f93e3012b96b8aec68fbb64b1815af56601d.tar.gz
- sync to 2.0.4GD_2_0_4
Diffstat (limited to 'src/webpng.c')
-rw-r--r--src/webpng.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webpng.c b/src/webpng.c
index 8065acc..3994c5e 100644
--- a/src/webpng.c
+++ b/src/webpng.c
@@ -58,7 +58,11 @@ main (int argc, char **argv)
exit (1);
}
/* Now load the image. */
+#ifdef HAVE_LIBPNG
im = gdImageCreateFromPng (in);
+#else
+ fprintf(stderr, "No PNG library support.\n");
+#endif
fclose (in);
/* If the load failed, it must not be a PNG file. */
if (!im)
@@ -229,8 +233,11 @@ usage:
}
/* Write the new PNG. */
+#ifdef HAVE_LIBPNG
gdImagePng (im, out);
-
+#else
+ fprintf(stderr, "No PNG library support.\n");
+#endif
if (!useStdinStdout)
{
fclose (out);