17 lines
328 B
PHP
17 lines
328 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\ImageFilters;
|
||
|
|
||
|
use Intervention\Image\Interfaces\ImageInterface;
|
||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||
|
|
||
|
class Gallery implements ModifierInterface
|
||
|
{
|
||
|
public function apply(ImageInterface $image): ImageInterface
|
||
|
{
|
||
|
$image->scaleDown(height: 300);
|
||
|
|
||
|
return $image;
|
||
|
}
|
||
|
}
|