Merge pull request #1762 from burakcakirel/invoice-logo-width-height

Add height for invoice logo
This commit is contained in:
Cüneyt Şentürk
2021-01-15 23:16:26 +03:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,8 @@ class Logo
}
$image = Image::cache(function($image) use ($path) {
$width = $height = setting('invoice.logo_size', 128);
$width = setting('invoice.logo_size_width');
$height = setting('invoice.logo_size_height');
$image->make($path)->resize($width, $height)->encode();
});