Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / imagemagick / src / Plugin / ImageToolkit / Operation / imagemagick / Crop.php
index eedd1ebca85d2ad480359ab3f160552d289680dc..04f621868e67ec75ec04f99f94508f2555a5f4a0 100644 (file)
@@ -76,7 +76,7 @@ class Crop extends ImagemagickImageToolkitOperationBase {
     // Even though the crop effect in Drupal core does not allow for negative
     // offsets, ImageMagick supports them. Also note: if $x and $y are set to
     // NULL then crop will create tiled images so we convert these to ints.
-    $this->getToolkit()->addArgument(sprintf('-crop %dx%d%+d%+d!', $arguments['width'], $arguments['height'], $arguments['x'], $arguments['y']));
+    $this->addArgument(sprintf('-crop %dx%d%+d%+d!', $arguments['width'], $arguments['height'], $arguments['x'], $arguments['y']));
     $this->getToolkit()->setWidth($arguments['width'])->setHeight($arguments['height']);
     return TRUE;
   }