Page 1 of 1

Imagick read MPC error: unable to persist pixel cache

Posted: 2010-09-15T06:38:33-07:00
by raindeer
Hi!

Im trying to read a MPC file (.mpc and .cache) with Imagick in PHP but keep getting an 'unable to persist pixel cache' error.

First I create the mpc from a pdf:

Code: Select all

$im = new Imagick();
$im->readImage( "test.pdf[0]" );
$im->writeImage('test.mpc');
Then later I what to read it:

Code: Select all

$im2 = new Imagick();
$im2->readImage( "test.mpc" );
This results in an error 'unable to persist pixel cache `/tmp/magick-XXYOwEfD'. Does anyone know how to solve this? Why is it looking for /tmp/magick-XXYOwEfD ? The pixel cache is stored in test.cache.

If I try to read test.mpc using the CLI it workes.
convert test.mpc output.png generates a valid png

erik

Re: Imagick read MPC error: unable to persist pixel cache

Posted: 2010-09-15T06:51:39-07:00
by magick
We cannot reproduce the problem with your script. We're using ImageMagick 6.6.4-2 and imagick 2.2.2-4.