There is a sample multi-page tiff you can download here (~4MB) http://www.nightprogrammer.org/wp-uploa ... xample.tif
Now, I tried the following:
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wand/magick_wand.h>
int main()
{
MagickWand *wand;
wand = NewMagickWand();
printf("Before\n");
getchar();
MagickReadImage(wand, "multipage_tif_example.tif");
printf("After\n");
getchar();
return 0;
}
Is there any reason for such large memory allocation? I am using archlinux, imagemagick 6.8.9-0
Thank you.