diff options
Diffstat (limited to 'src/cgg.c')
| -rw-r--r-- | src/cgg.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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(); |
