Skip to content

Commit 167af5e

Browse files
committed
Add "auto-orient" option
1 parent 4a6e093 commit 167af5e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Command.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,16 @@ public function strokeWidth(float $strokeWidth): self
552552
return $this;
553553
}
554554

555+
/**
556+
* @see https://imagemagick.org/script/command-line-options.php#auto-orient
557+
*/
558+
public function autoOrient(): self
559+
{
560+
$this->command[] = '-auto-orient';
561+
562+
return $this;
563+
}
564+
555565
/**
556566
* /!\ Append a raw command to ImageMagick.
557567
* Not safe! Use at your own risks!
@@ -567,7 +577,7 @@ public function rawCommand(string $command, bool $append = false): self
567577
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! 😃
568578
MSG
569579
;
570-
trigger_error($msg, E_USER_DEPRECATED);
580+
@trigger_error($msg, E_STRICT);
571581

572582
if ($append) {
573583
$this->commandToAppend[] = $command;

0 commit comments

Comments
 (0)