How to specify the folder for temporary data files ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
batmax2

How to specify the folder for temporary data files ?

Post by batmax2 »

Sometimes there is not enough room on the system drive where temporary files created by default. Does anybody know how to specify my own folder for those temporary data files ?
batmax2

Re: How to specify the folder for temporary data files ?

Post by batmax2 »

Well, I've found two ways:
1) specify the environment variable MAGICK_TEMPDIR
2) specify the path for temporary files "in-line" like this:
convert -set registry:temporary-path /data/tmp...
batmax2

Re: How to specify the folder for temporary data files ?

Post by batmax2 »

Those two ways definitely dont work under Windows (and I didn't test under Linux).
In Windows, IM stores it's temporary files where the system variable "TMP" (but not "TEMP"!) dictates.
In Registry that variable is stored at:
HKEY_Current_User\Environment\TMP
Works under WinXP Pro SP2 at least, may be on other windozes too.
Post Reply