Skip to content

Commit

Permalink
optional driver to use imagick (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed May 12, 2023
1 parent f986b82 commit 11dbdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImageX.php
Expand Up @@ -19,9 +19,9 @@ private function __construct()
$this->format = new JpgFormat();
}

public static function from(string $path): self
public static function from(string $path, string $driver = 'gd'): self
{
$imageManager = new ImageManager(['driver' => 'gd']);
$imageManager = new ImageManager(['driver' => $driver]);

$self = new self();

Expand Down

0 comments on commit 11dbdcf

Please sign in to comment.