File "Blurred.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/spatie/laravel-medialibrary/src/ResponsiveImages/TinyPlaceholderGenerator/Blurred.php
File size: 440 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Spatie\MediaLibrary\ResponsiveImages\TinyPlaceholderGenerator;
use Spatie\MediaLibrary\Support\ImageFactory;
class Blurred implements TinyPlaceholderGenerator
{
public function generateTinyPlaceholder(string $sourceImagePath, string $tinyImageDestinationPath): void
{
$sourceImage = ImageFactory::load($sourceImagePath);
$sourceImage->width(32)->blur(5)->save($tinyImageDestinationPath);
}
}