Thumbnail gif
Posted: 2016-12-19T06:31:59-07:00
Hello! How to thumbnail gif file? I need only first frame.
Here code(error checking is omitted):
But output image is too large.
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();