Skip to content

Commit

Permalink
Merge pull request flyimg#335 from flyimg/issue#334
Browse files Browse the repository at this point in the history
Fixing background color options by adding `-alpha remove -alpha off`
  • Loading branch information
sadok-f authored May 24, 2022
2 parents 17b4a31 + 174ddf6 commit 58ee411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/Processor/ImageProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ private function checkForwardedOptions(): string
foreach ($forwardedOptions as $option) {
if (!empty($this->options->getOption($option))) {
$command->addArgument("-" . $option, $this->options->getOption($option));
if ($option == 'background') {
$command->addArgument("-alpha remove -alpha off");
}
}
}

Expand Down

0 comments on commit 58ee411

Please sign in to comment.