2024-04-20 23:27:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\ImageFilters;
|
|
|
|
|
|
|
|
use Intervention\Image\Interfaces\ImageInterface;
|
|
|
|
use Intervention\Image\Interfaces\ModifierInterface;
|
|
|
|
|
|
|
|
class Article implements ModifierInterface
|
|
|
|
{
|
|
|
|
public function apply(ImageInterface $image): ImageInterface
|
|
|
|
{
|
2024-04-22 22:20:05 +02:00
|
|
|
$image->scaleDown(width: 864, height: 600);
|
2024-04-20 23:27:47 +02:00
|
|
|
|
|
|
|
return $image;
|
|
|
|
}
|
|
|
|
}
|