Ticket 711: image recize on recipes.show
This commit is contained in:
parent
e8c26e2a8d
commit
6dbfe43a67
2 changed files with 9 additions and 1 deletions
|
|
@ -127,5 +127,13 @@ return [
|
|||
'breedingWebp' => [
|
||||
'format' => 'webp'
|
||||
],
|
||||
'recipeFilterPNG' => [
|
||||
'height' => 180,
|
||||
'width' => 180,
|
||||
'format' => 'png',
|
||||
'resize' => true,
|
||||
'inCanvas' => true,
|
||||
'keepRatio' => true
|
||||
],
|
||||
]
|
||||
];
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ $vegetal = ($recipe->products->first()->range->slug ?? '') == 'le-vegetal';
|
|||
@if(count($recipe->products))
|
||||
<figure>
|
||||
@foreach($recipe->products as $product)
|
||||
<img src="{{ $product->picture }}" alt="{{ $product->name }}" />
|
||||
<img src="{{ asset(resizePublic($product->picture, 'recipeFilterPNG')) }}" alt="{{ $product->name }}" />
|
||||
@endforeach
|
||||
</figure>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue