Count image sequences in wand

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

Count image sequences in wand

Post by mikko » 2007-01-08T04:24:02-07:00

What is the easiest way to count image sequences in magick wand? I had a variable with numImages and I added one to it every time I read an image.

But for example reading multi-page PDF adds multiple sequences so it messes up. Currently I am moving the pointer to last sequence, read the position and return the pointer back. Is there an easier way?

User avatar
Site Admin
Posts: 10963
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2007-01-08T08:22:22-07:00

MagickGetNumberImages() returns the number of images in a wand container.


Thank you!

Post by mikko » 2007-01-08T11:19:04-07:00

Heh, and I tough I read trough the docs multiple times :)

Thanks for quick answer!


Post by *void » 2007-01-11T13:05:30-07:00

So many functions (534 in MagickWand DLL)...
So little...

...memory (and I don't mean my computer). :wink:

Post Reply