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();