Large Image Support

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Luyen
Posts: 12
Joined: 2016-06-10T00:05:43-07:00
Authentication code: 1151

Large Image Support

Post 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
Thank you
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Large Image Support

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply