Page 1 of 1

Large Image Support

Posted: 2016-07-26T00:56:16-07:00
by Luyen
Hello,

I have read a document telling about larger image support.
It is said that:
"For large images, ImageMagick will likely create a pixel cache on disk. Make sure you have plenty of temporary disk space. If your default temporary disk partition is too small, tell ImageMagick to use another partition with plenty of free space. For example:

convert -define registry:temporary-path=/data/tmp logo: \
-resize 250000x250000 logo.miff
"

How can I implement registry:temporary-path= in my sourcecode. I use magick++ api.


And another question:

Is there any function to know when the memory(area, memory, map, disk) is full?
Thanks in advance,
Luyen

Re: Large Image Support

Posted: 2016-07-26T07:31:51-07:00
by snibgo
For "-define", I'm guessing: try defineValue, documented on http://www.imagemagick.org/Magick++/Image++.html

I haven't noticed any IM functions for reporting memory usage etc.

Your C library will have general functions for memory and disk usage. For example, I use GlobalMemoryStatusEx() for memory usage on Windows.