Date Published: February 6, 2025
Moving ImageMagick temporary directory path
For various reasons, you may need to change the location of the temporary directory that ImageMagick uses. A common use case is that ephemeral disk can easily run out space due to large *.pam
files like magick-14446qjlotf0hZnw8.pam
.
The ImageMagick temporary folder on Acquia Cloud defaults to using /tmp
, however, ImageMagick can be configured via environment variables. The variable that controls the path of the ImageMagick temporary directory is called MAGICK_TEMPORARY_PATH
.
Select the appropriate documentation from the list below in order to set the MAGICK_TEMPORARY_PATH
environment variable:
By following the above guide on creating custom environment variables, create one named MAGICK_TEMPORARY_PATH
and set the value to /mnt/tmp/[docroot].[env]/
.
Make sure to replace [docroot]
and [env]
with the appropriate values for the application and environment you wish to modify the location of the temporary folder for ImageMagick.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.