From 9c2c964727e4a484acf7f97267a3cf1c8fbacd89 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 11 Apr 2009 15:43:15 +0200 Subject: Print statistics in verbose mode --- src/jpeg-utils.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/jpeg-utils.cpp') diff --git a/src/jpeg-utils.cpp b/src/jpeg-utils.cpp index 483bf4a..275e859 100644 --- a/src/jpeg-utils.cpp +++ b/src/jpeg-utils.cpp @@ -27,6 +27,7 @@ #include #include "jpeg-utils.h" +#include "gallery-utils.h" @@ -184,7 +185,7 @@ get_exif (const char *filename, TExifData **exif_data) } catch (Exiv2::AnyError& e) { - fprintf (stderr, "get_exif: Caught Exiv2 exception: '%s'\n", e.what()); + log_error ("get_exif: Caught Exiv2 exception: '%s'\n", e.what()); return -1; } @@ -283,7 +284,7 @@ resize_image (const char *src, const char *dst, ExceptionType severity; \ \ description = MagickGetException (wand, &severity); \ - (void) fprintf (stderr, "Error converting image: %s %s %ld %s\n", GetMagickModule(), description); \ + log_error ("Error converting image: %s %s %ld %s\n", GetMagickModule(), description); \ description = (char*) MagickRelinquishMemory (description); \ return FALSE; \ } @@ -325,7 +326,7 @@ get_image_sizes (const char *img, ExceptionType severity; \ \ description = MagickGetException (wand, &severity); \ - (void) fprintf (stderr, "Error reading image info: %s %s %ld %s\n", GetMagickModule(), description); \ + log_error ("Error reading image info: %s %s %ld %s\n", GetMagickModule(), description); \ description = (char*) MagickRelinquishMemory(description); \ return; \ } @@ -422,6 +423,6 @@ modify_exif (const char *filename, gboolean strip_thumbnail, const char *add_cop } catch (Exiv2::AnyError& e) { - fprintf (stderr, "modify_exif: Caught Exiv2 exception: '%s'\n", e.what()); + log_error ("modify_exif: Caught Exiv2 exception: '%s'\n", e.what()); } } -- cgit v1.2.3