title: Change tmp for ImageMagick
body: <p>My tmp folder is getting spammed by imagemagick files. I want to change the path where the temporary files are saved so i can delete them with a script. For that I have tried changing the path in the <code>policy.xml</code> but it is still using the <code>/tmp/</code> folder. The method <code>setRegistry()</code>, <a href="https://stackoverflow.com/questions/40868089/set-php-imagemagick-tmp-directory">suggested in this post</a>, does not seem to exist in the class <code>Imagick</code> and I don't know where find the <a href="http://www.imagemagick.org/script/resources.php" rel="nofollow noreferrer">enviornment variables</a> like <code>MAGICK_TEMPORARY_PATH</code>. Can someone help me with that?</p>