summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2014-03-15 22:21:58 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2014-03-15 22:21:58 +0100
commitef1d22999ea6de81f0eb0c58a92da5fa750ee393 (patch)
treec6ec4e034b790e539f36f09abcf95d7e9b9b0786
parent69259a48e3d80cdd3d20d33ae70b32801bf9e7ab (diff)
downloadcataract-ef1d22999ea6de81f0eb0c58a92da5fa750ee393.tar.xz
jpeg-utils: Strip all profiles from thumbnails
This removes associated ICC profiles and such, though we should perform proper colorspace conversion to plain (s)RGB first.
-rw-r--r--src/jpeg-utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jpeg-utils.cpp b/src/jpeg-utils.cpp
index 81dd47b..6c652a5 100644
--- a/src/jpeg-utils.cpp
+++ b/src/jpeg-utils.cpp
@@ -489,6 +489,8 @@ resize_image (const gchar *src, const gchar *dst,
break;
}
MagickThumbnailImage (magick_wand, size_x, size_y);
+ /* FIXME: this strips image ICC profile, should do proper conversion first */
+ MagickStripImage (magick_wand);
}
else
MagickResizeImage (magick_wand, size_x, size_y, LanczosFilter, 1.0);