Fixed: Resize png
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5f1259a462
commit
cb3228bc53
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue