Page 1 of 1

Thumbnail gif

Posted: 2016-12-19T13:31:59+00:00
by Shiro
Hello! How to thumbnail gif file? I need only first frame.

Here code(error checking is omitted):

Code: Select all

MagickWand *m_wand = NULL;

MagickWandGenesis();
	
m_wand = NewMagickWand();
MagickReadImage(m_wand, "test.gif");

MagickThumbnailImage(m_wand, 100, 100);

MagickWriteImage(m_wand, "output.jpeg");
	
m_wand = DestroyMagickWand(m_wand);
MagickWandTerminus();
But output image is too large.