Skip to content

Commit

Permalink
feat: allow \Kirby\Filesystem\Asset for image method
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Jan 6, 2023
1 parent b481c19 commit 184ce52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlurryPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class BlurryPlaceholder
/**
* Returns the blurry image placeholder as SVG for the given file
*/
public static function image(\Kirby\Cms\File $file, array $options = []): string
public static function image(\Kirby\Filesystem\Asset|\Kirby\Cms\File $file, array $options = []): string
{
$kirby = kirby();
$options['pixelTarget'] ??= $kirby->option('johannschopplich.blurry-placeholder.pixel-target', 60);
Expand Down

0 comments on commit 184ce52

Please sign in to comment.