Saving many images to files gets slow
Posted: 2009-08-21T03:03:41-07:00
Hey guys,
I am pretty new to IM ... I use Core functions to save buffered images to files, depending on the number of images the saving gets really slow (means < 1 MB/s). I tried two different approches:
a) creating Images and saving them via WriteFile() - gets slow at ~750 images
b) creating an Image list and saving it via WriteFiles() - the list creation almost stops at ~1200 images
All images are ~640x480 pixels, 8 bit grayscale, I guess its a memory issue, although I shouldn't touch the bounds currently. Is there a better way to save many images? Can I somehow influence the amount of allocated memory of the image list?
Any help is appreciated.
Regards, Oliver
I am pretty new to IM ... I use Core functions to save buffered images to files, depending on the number of images the saving gets really slow (means < 1 MB/s). I tried two different approches:
a) creating Images and saving them via WriteFile() - gets slow at ~750 images
b) creating an Image list and saving it via WriteFiles() - the list creation almost stops at ~1200 images
All images are ~640x480 pixels, 8 bit grayscale, I guess its a memory issue, although I shouldn't touch the bounds currently. Is there a better way to save many images? Can I somehow influence the amount of allocated memory of the image list?
Any help is appreciated.
Regards, Oliver