Don't resize gif logos
This commit is contained in:
parent
d76005ee2c
commit
bd4a92c25c
1 changed files with 1 additions and 5 deletions
|
|
@ -1069,12 +1069,8 @@ class AccountController extends BaseController
|
|||
}
|
||||
} else {
|
||||
if (extension_loaded('fileinfo')) {
|
||||
$image = Image::make($path);
|
||||
$image->resize(200, 120, function ($constraint) {
|
||||
$constraint->aspectRatio();
|
||||
});
|
||||
|
||||
$account->logo = $account->account_key.'.png';
|
||||
$image = Image::make($path);
|
||||
$image = Image::canvas($image->width(), $image->height(), '#FFFFFF')->insert($image);
|
||||
$imageStr = (string) $image->encode('png');
|
||||
$disk->put($account->logo, $imageStr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue