Search found 3 matches

by Shiro
2016-12-19T06:31:59-07:00
Forum: MagickWand
Topic: Thumbnail gif
Replies: 0
Views: 17715

Thumbnail gif

Hello! How to thumbnail gif file? I need only first frame. Here code(error checking is omitted): 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 = De...
by Shiro
2016-12-19T06:11:14-07:00
Forum: MagickWand
Topic: How to check image is opaque?
Replies: 2
Views: 11271

Re: How to check image is opaque?

magick wrote:MagickGetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.
Thanks!
by Shiro
2016-12-19T05:26:09-07:00
Forum: MagickWand
Topic: How to check image is opaque?
Replies: 2
Views: 11271

How to check image is opaque?

I see in MagickCore have method

Code: Select all

IsImageOpaque
but i dont find simular function in Wand. Of course, it's low level operation, but i want to check current wand.
Or MagicCore is the best and only option to achieve this?