Skip to content

Commit

Permalink
images without width & height no filter apply
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Sep 6, 2024
1 parent 61a8efe commit 85d4442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/BlockHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static function imageUpload(string|int|null $value, bool|string $applyFil
return false;
}

if ($applyFilter && is_string($applyFilter)) {
if ($applyFilter && is_string($applyFilter) && ($image->getResolutionHeight() !== 0 && $image->getResolutionWidth() !== 0)) {
$filter = $image->applyFilter($applyFilter);

if ($filter) {
Expand Down

0 comments on commit 85d4442

Please sign in to comment.