multi-page tiff: excessive memory usage
Posted: 2014-05-11T06:14:33-07:00
Hello, I am experiencing a weird issue (or I am misreading what I am getting).
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:
Memory usage in After increases 270MB wrt Before. This gets worse with bigger tif files, for example it allocated 1GB when fed with a 68MB tif file.
Is there any reason for such large memory allocation? I am using archlinux, imagemagick 6.8.9-0
Thank you.
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.