From: ellson Date: Thu, 19 Jan 2006 22:28:20 +0000 (+0000) Subject: eliminate jpeg dependency X-Git-Tag: LAST_LIBGRAPH~32^2~6849 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c71095e14397d97fbe15afbdf42a8a5bb4f038d5;p=graphviz eliminate jpeg dependency --- diff --git a/lib/gd/gdfx.c b/lib/gd/gdfx.c index e63f2d459..0566f8bde 100644 --- a/lib/gd/gdfx.c +++ b/lib/gd/gdfx.c @@ -232,16 +232,26 @@ main (int argc, char *argv[]) /* Create an image of text on a circle, with an alpha channel so that we can copy it onto a background */ + + im = NULL; + +/* What is this eleanor.jpg stuff doing here anyway? + * There is no such file in the gd-2.0.33 sources. */ +#if 0 +#if HAVE_LIBJPEG in = fopen ("eleanor.jpg", "rb"); - if (!in) - { - im = gdImageCreateTrueColor (300, 300); - } - else + if (in) { im = gdImageCreateFromJpeg (in); fclose (in); } +#endif +#endif + + if (!im) + { + im = gdImageCreateTrueColor (300, 300); + } if (gdImageSX (im) < gdImageSY (im)) { radius = gdImageSX (im) / 2;