aboutsummaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-11-27 18:20:18 +0100
committerStefan Pöschel <github@basicmaster.de>2015-11-27 18:20:18 +0100
commit8a5d811367bce40f751b29fbf49b9b7a2e0493ff (patch)
treee6fcf500a9b34808647e306dac734af4f63daa76 /src/mot-encoder.cpp
parente6ec735ebd11303b3c787ee72ba007094f65ee76 (diff)
downloadODR-PadEnc-8a5d811367bce40f751b29fbf49b9b7a2e0493ff.tar.gz
ODR-PadEnc-8a5d811367bce40f751b29fbf49b9b7a2e0493ff.tar.bz2
ODR-PadEnc-8a5d811367bce40f751b29fbf49b9b7a2e0493ff.zip
MOT encoder: strip unneeded information from image
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index aa30eb1..40831c7 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1013,6 +1013,9 @@ int encodeFile(int output_fd, std::string& fname, int fidx, bool raw_slides)
// By default assume that the image has full quality and can be reduced
orig_quality = 100;
+ // strip unneeded information (profiles, meta data)
+ MagickStripImage(m_wand);
+
if (orig_format) {
if (strcmp(orig_format, "JPEG") == 0) {
orig_quality = MagickGetImageCompressionQuality(m_wand);