How to change path for temp 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Set the environment variables TMPDIR or MAGICK_TMPDIR to set the ImageMagick temporary file path.
set_temp_dir_failed

Don't work on Windows

Post by set_temp_dir_failed »

  • What I do:
[*] download ImageMagick-6.5.4-Q16-windows.zip portable archive
[*] unpack to directory D:\temp\ImageMagick-6.5.4-10
[*] set temporary environment variable:

Code: Select all

MAGICK_TEMPORARY_PATH=d:\temp
MAGICK_TMPDIR=d:\temp
[*] call convert.exe from this directory for converting files from JPEG2000 to JPEG format.

convert.exe creates all the temporary files in

Code: Select all

D:\
directory instead of

Code: Select all

D:\temp
.

I have some sort of undelete program running on system and convert.exe quickly fills its work directory with temp files.
Setting 'MAGICK_DEBUG' environment variable to All/Trace etc along with '-verbose' cant print temporary directory acquired by convert.exe.

First, which command line options show me the temporary directory determined by convert.exe utility?
Thank you.
Post Reply