Skip to content

Commit f717f14

Browse files
committed
Add support for "-geometry"
1 parent 121b92b commit f717f14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Command.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,19 @@ public function crop($geometry): self
404404
return $this;
405405
}
406406

407+
/**
408+
* @param string|Geometry $geometry
409+
*
410+
* @see http://imagemagick.org/script/command-line-options.php#geometry
411+
*/
412+
public function geometry($geometry): self
413+
{
414+
$this->command[] = '-geometry';
415+
$this->command[] = '"'.$this->ref->geometry($geometry).'"';
416+
417+
return $this;
418+
}
419+
407420
/**
408421
* @param string|Geometry $geometry
409422
*

0 commit comments

Comments
 (0)