summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;