http://php.net/manual/en/imagick.setimageformat.php
<?php // read page 1 $im = new imagick( 'test.pdf[ 0]' ); // convert to jpg $im->setImageColorspace(255); $im->setCompression(Imagick::COMPRESSION_JPEG); $im->setCompressionQuality(60); $im->setImageFormat('jpeg'); //resize $im->resizeImage(290, 375, imagick::FILTER_LANCZOS, 1); //write image on server $im->writeImage('thumb.jpg'); $im->clear(); $im->destroy(); ?> On Mon, May 21, 2012 at 10:14 AM, Blues Clues <bluesclu...@gmail.com> wrote: > Hi, > > Thanks. Very encouraging start. Would you be kind to provide some sample > code to use this in my controller? I am losing my mind on this to convert > PDF to PNG file in my cakephp 1.3 controller. > > -Adhi > > > On Monday, May 21, 2012 10:30:36 AM UTC-4, ibejohn818 wrote: > >> Use the pecl library imagick. It is more than capable and has a very good >> interface >> >> http://pecl.php.net/package/**imagick<http://pecl.php.net/package/imagick> >> On May 21, 2012 7:25 AM, "bluesclues9" <bluesclu...@gmail.com> wrote: >> >>> Hi >>> Just curious about this question as I have a similar need. Did you ever >>> get >>> an answer or figured out yourself? >>> >>> thanks >>> -Adhi >>> >>> -- >>> View this message in context: http://cakephp.1045679.n5.** >>> nabble.com/ImageMagick-Cake-**Ver-2-0-4-tp5126927p5708144.**html<http://cakephp.1045679.n5.nabble.com/ImageMagick-Cake-Ver-2-0-4-tp5126927p5708144.html> >>> Sent from the CakePHP mailing list archive at Nabble.com. >>> >>> -- >>> Our newest site for the community: CakePHP Video Tutorials >>> http://tv.cakephp.org >>> Check out the new CakePHP Questions site http://ask.cakephp.org and >>> help others with their CakePHP related questions. >>> >>> >>> To unsubscribe from this group, send email to >>> cake-php+unsubscribe@**googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For >>> more options, visit this group at >>> http://groups.google.com/**group/cake-php<http://groups.google.com/group/cake-php> >>> >> -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php