SHARE
TWEET

Untitled

a guest Jun 7th, 2012 32 Never
  1. $im = new Imagick();
  2. $im->setResolution(300,300);
  3.                        
  4. $im->readImage('mypdf.pdf');
  5. $im->setImageUnits(imagick::RESOLUTION_PIXELSPERINCH);
  6. $im->adaptiveResizeImage(707,1000);
  7. $im->setResolution(300,300);
  8. $im->setImageFormat( "jpg" );
  9. $originalImageFile = 'myjpg.jpg';
  10. $im->writeImage($originalImageFile);
RAW Paste Data
Top