Skip to content

Commit

Permalink
Add "auto-orient" option
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed May 23, 2019
1 parent 4a6e093 commit 167af5e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,16 @@ public function strokeWidth(float $strokeWidth): self
return $this;
}

/**
* @see https://imagemagick.org/script/command-line-options.php#auto-orient
*/
public function autoOrient(): self
{
$this->command[] = '-auto-orient';

return $this;
}

/**
* /!\ Append a raw command to ImageMagick.
* Not safe! Use at your own risks!
Expand All @@ -567,7 +577,7 @@ public function rawCommand(string $command, bool $append = false): self
If the option you need is not supported, please open an issue or a pull-request at https://github.com/Orbitale/ImageMagickPHP in order for us to implement the option you need! 😃
MSG
;
trigger_error($msg, E_USER_DEPRECATED);
@trigger_error($msg, E_STRICT);

if ($append) {
$this->commandToAppend[] = $command;
Expand Down

0 comments on commit 167af5e

Please sign in to comment.