From c13636b1bba681b6e0e7ecf220af03d2a163638e Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 29 Nov 2015 19:31:43 +0100 Subject: MOT encoder: display correct image size after adding black border --- src/mot-encoder.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3