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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -