Skip to content

Commit

Permalink
Add aliases for File::bw() #2384
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jan 9, 2020
1 parent e4ffb60 commit 86193cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Cms/FileModifications.php
Expand Up @@ -68,6 +68,26 @@ public function crop(int $width, int $height = null, $options = null)
]);
}

/**
* Alias for File::bw()
*
* @return \Kirby\Cms\FileVersion|\Kirby\Cms\File
*/
public function grayscale()
{
return $this->thumb(['grayscale' => true]);
}

/**
* Alias for File::bw()
*
* @return \Kirby\Cms\FileVersion|\Kirby\Cms\File
*/
public function greyscale()
{
return $this->thumb(['grayscale' => true]);
}

/**
* Sets the JPEG compression quality
*
Expand Down

0 comments on commit 86193cc

Please sign in to comment.