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