Thumbnail gif

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
Shiro
Posts: 3
Joined: 2016-12-19T05:14:04-07:00
Authentication code: 1151

Thumbnail gif

Post 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.
Post Reply