Skip to content

Commit

Permalink
Fixing background color options by adding -alpha remove -alpha off
Browse files Browse the repository at this point in the history
  • Loading branch information
sadok-f committed May 24, 2022
1 parent 17b4a31 commit e46ff8d
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 e46ff8d

Please sign in to comment.