Skip to content

Commit c4b4213

Browse files
committed
Fixed bug in change format plugin.
1 parent 7d2fcc3 commit c4b4213

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/Xi/Filelib/Plugin/Image/ChangeFormatPlugin.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Xi\Filelib\File\Upload\FileUpload;
1616
use Xi\Filelib\FileLibrary;
1717
use Xi\Filelib\Plugin\BasePlugin;
18+
use Xi\Filelib\Plugin\Image\Command\Command;
1819

1920
/**
2021
* Changes images' formats before uploading
@@ -64,10 +65,12 @@ public function beforeUpload(FileUploadEvent $event)
6465
return;
6566
}
6667

68+
$commands = Command::createCommandsFromDefinitions($this->commandDefinitions);
69+
6770
$helper = new ImageMagickHelper(
6871
$upload->getRealPath(),
6972
$this->tempDir,
70-
$this->commandDefinitions
73+
$commands
7174
);
7275
$tempnam = $helper->execute();
7376

0 commit comments

Comments
 (0)