Skip to content

Commit

Permalink
Use image url if presets are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Meijer committed Oct 15, 2024
1 parent 9308e70 commit ba4582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/image.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class="{{ $class }}"
<img
{!! $attributes ?? '' !!}
class="{{ $class }}"
src="{{ $presets['placeholder'] ?? $image->url() }}"
src="{{ isset($presets['webp']) || isset($presets[$image->mimeType()]) ? ($presets['placeholder'] ?? $image->url()) : $image->url() }}"
alt="{{ $alt ?? $image->alt() }}"
width="{{ $width }}"
height="{{ $height }}"
Expand Down

0 comments on commit ba4582e

Please sign in to comment.