Best way to generate multiple thumbnails from one image
Posted: 2007-09-16T11:21:36-07:00
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!
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!