---
title: "Moving ImageMagick temporary directory path"
date: "2025-02-06T01:17:25+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/92176-moving-imagemagick-temporary-directory-path"
id: "b656fe53-99f0-4c03-8d1d-ea339d542e64"
---

For various reasons, you may need to change the location of the temporary directory that [ImageMagick](https://imagemagick.org/) 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](https://imagemagick.org/) temporary folder on Acquia Cloud defaults to using `/tmp`, however, [ImageMagick](https://imagemagick.org/) can be configured via [environment variables](https://imagemagick.org/script/resources.php#environment). The variable that controls the path of the [ImageMagick](https://imagemagick.org/) 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:

*   Acquia Cloud **Enterprise**: [Creating custom environment variables](/node/56301)
*   Acquia Cloud **Site Factory**: [Setting site variables on websites](/node/57279)

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](https://imagemagick.org/).