|
Hi,
I want to use ImageMagick with Cake Ver 2.0.4 (at least I think it is the best solution for my app). Then (most likely) gonna use phmagick to manipulate images etc. I have read several blogs on installing (in a PHP MAMP environment) and I am about to install ImageMagick but would greatly appreciate any useful suggestions on how best to use with Cake (before I start). Anyone using it with Cake? Where should I install it (i.e. the path) and any other help gratefully accepted. Kinda worried about how I will end up deploying it later on also, as I am currently using Rackspace Cloudsites :) Regards, Tim (No relation to the publisher) -- | cellphone: +18579280348 | | 123 10th Street | San Francisco | CA 94103 | -- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Hi
Just curious about this question as I have a similar need. Did you ever get an answer or figured out yourself? thanks -Adhi |
|
Use the pecl library imagick. It is more than capable and has a very good interface http://pecl.php.net/package/imagick On May 21, 2012 7:25 AM, "bluesclues9" <[hidden email]> wrote:
-- Hi 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
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: -- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-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 <[hidden email]> wrote:
-- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Hi
I have placed this code in my controller (changed the file locations a bit to map to /files/upload under cakephp 'webroot' folder. Nothing happens. Atleast I don't see any new file created. What might be going wrong here? $im = new imagick( 'files/upload/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('files/upload/test.jpg'); $im->clear(); $im->destroy(); -Adhi |
|
In reply to this post by Justin Edwards
Hi
I have added this code by mapping the file location to files/upload/ under webroot folder of Cakephp. However, nothing happens. Would you know why this might be happening? -Adhi <?php $im = new imagick( 'files/upload/test.pdf[0]' ); // convert to jpg $im->setImageColorspace(255); $im->setCompression(Imagick::C $im->setCompressionQuality(60) //resize $im->resizeImage(290, 375, ima //write image on server $im->writeImage('files/upload/thumb.jpg'); $im->clear(); $im->destroy(); ?>
-- On Monday, May 21, 2012 11:26:00 AM UTC-4, Justin Edwards wrote:
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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Why don't you rais up debug mode or check your server's logs and see whats happening! Trust your self, you can do it :) On Mon, May 21, 2012 at 7:20 PM, Blues Clues <[hidden email]> wrote: Hi -- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
| Powered by Nabble | Edit this page |
