Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / imagemagick / src / Plugin / ImageToolkit / Operation / imagemagick / Convert.php
index 7015d4a5ec2724c18a0afc6c84799c408934084e..b5865ec016f24fd9b4cdc6620568d0d7887f0e64 100644 (file)
@@ -40,16 +40,7 @@ class Convert extends ImagemagickImageToolkitOperationBase {
    * {@inheritdoc}
    */
   protected function execute(array $arguments) {
-    // When source image is multi-frame, convert only the first frame.
-    if ($this->getToolkit()->getFrames()) {
-      $path = $this->getToolkit()->getSourceLocalPath();
-      if (strripos($path, '[0]', -3) === FALSE) {
-        $this->getToolkit()->setSourceLocalPath($path . '[0]');
-      }
-    }
-    $this->getToolkit()
-      ->setFrames(NULL)
-      ->setDestinationFormatFromExtension($arguments['extension']);
+    $this->getToolkit()->arguments()->setDestinationFormatFromExtension($arguments['extension']);
     return TRUE;
   }