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