Drupal Programmatically Crop an Image Before Node Save
===

I need to crop my images before saving the node, when importing content with Feeds .

I tried to invoke [Imagick][1] from node_presave hook, but I got an error.


  [1]: http://php.net/manual/en/book.imagick.php