Page 1 of 1

Best way to generate multiple thumbnails from one image

Posted: 2007-09-16T11:21:36-07:00
by bensyverson
Hi everyone,

Another question about MagickWand in C... I want to read in an image, and generate a few different sized images from it. What's the best way to go about doing this? Right now, I'm reading an image into a MagickWand, and then cloning the whole wand structure a few times:

MagickWand *original, *large, *medium, *small;
large = CloneMagickWand(original);
medium = CloneMagickWand(original);
small = CloneMagickWand(original);

This seems like a strange way to do it, since you can have multiple images per wand. Is there some way to duplicate a certain image in a wand without duplicating the whole wand?

Thanks!

Re: Best way to generate multiple thumbnails from one image

Posted: 2007-09-16T20:32:16-07:00
by bensyverson
Nevermind, I've switched to MagickCore...

Re: Best way to generate multiple thumbnails from one image

Posted: 2007-09-23T19:53:30-07:00
by anthony
Magick core clones the images anyway, as part of the operation.