Hello:
The page at http://www.imagemagick.org/script/resou ... nvironment says that the correct environment variable to set so that ImageMagick temporary files (specifically the magick-XX files) are stored someplace other than /tmp is MAGICK_TEMPORARY_PATH. However, the site admin user "magick" on this board said that the environment variable was "MAGICK_TMPDIR" in the post at viewtopic.php?f=3&t=15534.
So, which is correct?
I ask, because I've been setting MAGICK_TEMPORARY_PATH on my (Redhat linux) system running ImageMagick 6.5.4-7 2012-04-10 Q16 OpenMP, but the magick-XX files are still winding up in /tmp, filling the root partition, and causing all manner of headaches.
Thanks!
Ian Crew
University of California, Berkeley
MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
Re: MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
Thanks, fmw42, but that's exactly the first page I linked to in my post. The thing is that the information there (a) doesn't seem to be working for me, and (b) doesn't agree with a post from user "magick" here. It's that discrepancy that I'm asking about.
Re: MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
In resource.c of IM-6.8.8-2, both MAGICK_TMPDIR and MAGICK_TEMPORARY_PATH seem to be nearly equivalent,
although MAGICK_TEMPORARY_PATH will be used instead of MAGICK_TMPDIR if both are defined.
if (directory == (char *) NULL)
directory=GetEnvironmentValue("MAGICK_TEMPORARY_PATH");
if (directory == (char *) NULL)
directory=GetEnvironmentValue("MAGICK_TMPDIR");
I haven't got a copy of 6.5.4, but in 6.5.3-10 and 6.6.0-10, only MAGICK_TEMPORARY_PATH is understood in resource.c
If the internal MAGICK_* variables don't work for you, try setting TMPDIR instead.
although MAGICK_TEMPORARY_PATH will be used instead of MAGICK_TMPDIR if both are defined.
if (directory == (char *) NULL)
directory=GetEnvironmentValue("MAGICK_TEMPORARY_PATH");
if (directory == (char *) NULL)
directory=GetEnvironmentValue("MAGICK_TMPDIR");
I haven't got a copy of 6.5.4, but in 6.5.3-10 and 6.6.0-10, only MAGICK_TEMPORARY_PATH is understood in resource.c
If the internal MAGICK_* variables don't work for you, try setting TMPDIR instead.
Re: MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
Thanks glennrp! Just to confirm, when you say
Cheers,
Ian
, do you mean setting the "TMPDIR" environment variable? I can try that.try setting TMPDIR instead
Cheers,
Ian
Re: MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
Yes, that's what I meant.icrew wrote:Thanks glennrp! Just to confirm, when you say, do you mean setting the "TMPDIR" environment variable? I can try that.try setting TMPDIR instead
Ian
Re: MAGICK_TMPDIR vs MAGICK_TEMPORARY_PATH?
OK, I'll give that a shot. Thanks again glennrp!