Issue with ImageMagick Filling Temp Folders on Linux

Applies to: All versions of Ephesoft Transact on Linux


When processing large batch instances, the drive may run out of space. This can cause ImageMagick processes to slow, lockup, or fail.

Root Cause

By default, ImageMagick uses the Linux default temp (/tmp) defined by Linux system environment variables.


Change the ImageMagick temporary location to a preferred location.

  1. Navigate to [Ephesoft_Directory]/Ephesoft/JavaAppServer/bin.
  2. Locate and backup the file.
  3. Open the file with your editor.
  4. Add the following line at the end of the file:
export MAGICK_TEMPORARY_PATH=<new file path>

For example, if you want to move the ImageMagick path to /opt/Ephesoft/ImageMagickTest, then enter:

export MAGICK_TEMPORARY_PATH=/opt/Ephesoft/ImageMagickTest

Figure 1. File

  1. Restart Transact.
  2. Create a new batch instance and confirm the new ImageMagick location. New ImageMagick conversions will appear in the updated path.

Figure 2. New ImageMagick Location