From c71095e14397d97fbe15afbdf42a8a5bb4f038d5 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 19 Jan 2006 22:28:20 +0000 Subject: [PATCH] eliminate jpeg dependency --- lib/gd/gdfx.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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; -- 2.40.0