I am doing several different transformations on a single source (e.g. different sizes of the source) and therefore I thought it be a good idea to store the original in a temporary mpc-file when processing to speed up the process a bit. However I get the following error when trying to read from the mpc-file:
Code: Select all
unable to persist pixel cache `/data/magick/magick-XXBqHuFC' @ mpc.c/ReadMPCImage/903
The mpc-file is stored in a temporary file generated with tmpfile(). As such I'm using Imagick::readimagefile() to load the file. Can someone please help me? I'm using CentOS 6.2 with Imagick 3.1.0RC1 (I have tried with 3.0.1 as well) with Imagemagick 6.5.4.7-5.el6