diff options
Diffstat (limited to 'src/jpeg-utils.cpp')
| -rw-r--r-- | src/jpeg-utils.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 <config.h> #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()); } } |
