summaryrefslogtreecommitdiff
path: root/src/cgg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgg.c')
-rw-r--r--src/cgg.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cgg.c b/src/cgg.c
index be882b1..e13ffbb 100644
--- a/src/cgg.c
+++ b/src/cgg.c
@@ -26,8 +26,6 @@
#include <libxml/xmlmemory.h>
-#include <wand/magick-wand.h>
-
#include <config.h>
#include "setup.h"
@@ -35,6 +33,7 @@
#include "stats.h"
#include "atom-writer.h"
#include "gallery-utils.h"
+#include "jpeg-utils.h"
@@ -129,8 +128,8 @@ main (int argc, char* argv[])
g_thread_init (NULL);
#endif
- /* Initialize ImageMagick at this point, for multithreading safety */
- MagickWandGenesis();
+ /* Initialize imaging libraries */
+ init_jpeg_utils ();
/* Parse commandline */
if (! parse_cmd (argc, argv))
@@ -261,8 +260,7 @@ main (int argc, char* argv[])
printf ("%d errors occured.\n", stats_errors);
}
-
- MagickWandTerminus();
+ destroy_jpeg_utils ();
/* Cleanup function for the XML library. */
xmlCleanupParser();