diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index a398927e1..a0c2b0996 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -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(); } diff --git a/app/Abstracts/View/Components/DocumentTemplate.php b/app/Abstracts/View/Components/DocumentTemplate.php index 00952f272..96ea249c9 100644 --- a/app/Abstracts/View/Components/DocumentTemplate.php +++ b/app/Abstracts/View/Components/DocumentTemplate.php @@ -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(); } diff --git a/app/Http/ViewComposers/Logo.php b/app/Http/ViewComposers/Logo.php index 401c7b973..738015844 100644 --- a/app/Http/ViewComposers/Logo.php +++ b/app/Http/ViewComposers/Logo.php @@ -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(); }