Fixed: Resize png
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2021-12-21 01:01:44 +01:00
parent 5f1259a462
commit cb3228bc53
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class PngCompressor extends Compressor {
$extension = $this->media->extension();
$temp = microtime().'.'.$extension;
$r = app(ImageManager::class)->make($this->media->root());
$r = app(ImageManager::class)->make($this->media->root())->fit($size->get('width'), $size->get('height'));
app(ImageManager::class)
->canvas($size->get('width'), $size->get('height'))->insert($r, 'center')
->save(Storage::path($temp));