ImageMagick php imagick loading a file from memory -
i m trying integrate imagick framework. framework has file in memory.
the imagick code works great
/* read page 1 */ $im = new imagick( 'test.pdf[0]' ); /* convert png */ $im->setimageformat( "png" ); /* send out */ header( "content-type: image/png" ); echo $im;
now problem imagick constructor takes path name. how can load pdf memory.
like $im = newimagick($file);
$im = new imagick(); $im->readimageblob($file_contents);
http://www.php.net/manual/en/function.imagick-readimageblob.php
Comments
Post a Comment