Skip to content

Commit b2e6765

Browse files
committed
Add transpose and transverse
Added transpose: flip image vertically and rotate 90 degrees (http://imagemagick.org/script/command-line-options.php#transpose) Added transverse: flop image horizontally and rotate 270 degrees (http://imagemagick.org/script/command-line-options.php#transverse)
1 parent 8e5d443 commit b2e6765

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Command.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,26 @@ public function colorspace(string $colorspace): self
607607
return $this;
608608
}
609609

610+
/**
611+
* @see http://imagemagick.org/script/command-line-options.php#transpose
612+
*/
613+
public function transpose(): self
614+
{
615+
$this->command[] = '-transpose';
616+
617+
return $this;
618+
}
619+
620+
/**
621+
* @see http://imagemagick.org/script/command-line-options.php#transverse
622+
*/
623+
public function transverse(): self
624+
{
625+
$this->command[] = '-transverse';
626+
627+
return $this;
628+
}
629+
610630
/**
611631
* /!\ Append a raw command to ImageMagick.
612632
* Not safe! Use at your own risks!

0 commit comments

Comments
 (0)