Add height for invoice logo

This commit is contained in:
Burak Çakırel
2020-12-10 14:13:58 +03:00
parent d15677c2ac
commit 9ec0b90fcb
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();
});