Skip to content

Commit da6c798

Browse files
added threshold command implementation
1 parent 6562767 commit da6c798

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Command.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,17 @@ public function transverse(): self
638638
return $this;
639639
}
640640

641+
/**
642+
* @see http://www.imagemagick.org/script/command-line-options.php#threshold
643+
*/
644+
public function threshold(string $threshold): self
645+
{
646+
$this->command[] = '-threshold';
647+
$this->command[] = $this->ref->threshold($threshold);
648+
649+
return $this;
650+
}
651+
641652
/**
642653
* /!\ Append a raw command to ImageMagick.
643654
* Not safe! Use at your own risks!

0 commit comments

Comments
 (0)