This commit is contained in:
Cüneyt Şentürk 2021-05-26 17:22:17 +03:00
parent 4870269131
commit 64575107f3
3 changed files with 3 additions and 3 deletions

View File

@ -609,7 +609,7 @@ abstract class DocumentShow extends Base
$height = setting('invoice.logo_size_height');
if ($media) {
$image->make($media->stream())->resize($width, $height)->encode();
$image->make(Storage::get($path))->resize($width, $height)->encode();
} else {
$image->make($path)->resize($width, $height)->encode();
}

View File

@ -211,7 +211,7 @@ abstract class DocumentTemplate extends Base
$height = setting('invoice.logo_size_height');
if ($media) {
$image->make($media->stream())->resize($width, $height)->encode();
$image->make(Storage::get($path))->resize($width, $height)->encode();
} else {
$image->make($path)->resize($width, $height)->encode();
}

View File

@ -40,7 +40,7 @@ class Logo
$height = setting('invoice.logo_size_height');
if ($media) {
$image->make($media->stream())->resize($width, $height)->encode();
$image->make(Storage::get($path))->resize($width, $height)->encode();
} else {
$image->make($path)->resize($width, $height)->encode();
}