aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-11-29 19:31:43 +0100
committerStefan Pöschel <github@basicmaster.de>2015-11-29 19:32:25 +0100
commitc13636b1bba681b6e0e7ecf220af03d2a163638e (patch)
tree945a5fe354bc1cebeb75addc549056c4b9c1e267
parentf556c24eb630fbef285ab338589f110756eb7597 (diff)
downloadODR-PadEnc-c13636b1bba681b6e0e7ecf220af03d2a163638e.tar.gz
ODR-PadEnc-c13636b1bba681b6e0e7ecf220af03d2a163638e.tar.bz2
ODR-PadEnc-c13636b1bba681b6e0e7ecf220af03d2a163638e.zip
MOT encoder: display correct image size after adding black border
-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 0bddd86..9abbd0e 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -929,6 +929,9 @@ size_t resizeImage(MagickWand* m_wand, unsigned char** blob)
MagickBorderImage(m_wand, p_wand, (320-width)/2, (240-height)/2);
DestroyPixelWand(p_wand);
+ height = MagickGetImageHeight(m_wand);
+ width = MagickGetImageWidth(m_wand);
+
MagickSetImageFormat(m_wand, "jpg");
int quality = 100;