Skip to content

Commit

Permalink
add gumlet mask filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Nov 30, 2021
1 parent e46606e commit 198c8ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Bridge/Gumlet/GumletBuilder.php
Expand Up @@ -56,6 +56,16 @@ public function crop(
return $this;
}

/**
* @return self
*/
public function mask(string $mask)
{
$this->options['mask'] = $mask;

return $this;
}

/**
* @return mixed[]
*/
Expand Down
Expand Up @@ -71,6 +71,11 @@ protected function resize(GumletBuilder $builder, ...$arguments): void
$builder->resize($width, $height, $mode);
}

protected function mask(GumletBuilder $builder, string $mask): void
{
$builder->mask($mask);
}

protected function crop(GumletBuilder $builder, string $mode): void
{
$builder->crop($mode);
Expand Down

0 comments on commit 198c8ee

Please sign in to comment.