We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2fcc3 commit c4b4213Copy full SHA for c4b4213
library/Xi/Filelib/Plugin/Image/ChangeFormatPlugin.php
@@ -15,6 +15,7 @@
15
use Xi\Filelib\File\Upload\FileUpload;
16
use Xi\Filelib\FileLibrary;
17
use Xi\Filelib\Plugin\BasePlugin;
18
+use Xi\Filelib\Plugin\Image\Command\Command;
19
20
/**
21
* Changes images' formats before uploading
@@ -64,10 +65,12 @@ public function beforeUpload(FileUploadEvent $event)
64
65
return;
66
}
67
68
+ $commands = Command::createCommandsFromDefinitions($this->commandDefinitions);
69
+
70
$helper = new ImageMagickHelper(
71
$upload->getRealPath(),
72
$this->tempDir,
- $this->commandDefinitions
73
+ $commands
74
);
75
$tempnam = $helper->execute();
76
0 commit comments