Imagick read MPC error: unable to persist pixel cache

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
raindeer

Imagick read MPC error: unable to persist pixel cache

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

We cannot reproduce the problem with your script. We're using ImageMagick 6.6.4-2 and imagick 2.2.2-4.
Post Reply