Imagick read MPC error: unable to persist pixel cache
Posted: 2010-09-15T06:38:33-07:00
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:
Then later I what to read it:
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
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');
Code: Select all
$im2 = new Imagick();
$im2->readImage( "test.mpc" );
If I try to read test.mpc using the CLI it workes.
convert test.mpc output.png generates a valid png
erik