Skip to content

Commit 476099a

Browse files
authored
Merge pull request #143 from systeminc/development
Development
2 parents 423625c + 7dcbc28 commit 476099a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Http/Controllers/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function anyUploadTinyImage(Request $request)
105105
if ($file->isValid() && in_array($file->getClientOriginalExtension(), $allowed) && strpos($directory, 'images/tiny') !== false) {
106106
$original = $this->cleanSpecialChars($file->getClientOriginalName());
107107

108-
$original_image = Image::make($file)->encode();
108+
$original_image = Image::make($file)->interlace()->encode();
109109

110110
Storage::put('public/'.$directory.'/'.$original, $original_image);
111111
}

src/Traits/HelpersTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ protected function saveImage($image, $path, $keepOriginal = false)
5252
if ($image->getClientOriginalExtension() === 'svg') {
5353
Storage::put('public/'.$storage_key, file_get_contents($image));
5454
} elseif ($keepOriginal) {
55-
$original_image = Image::make($image)->orientate()->encode();
55+
$original_image = Image::make($image)->orientate()->interlace()->encode();
5656

5757
Storage::put('public/'.$storage_key, $original_image);
5858
} else {
59-
$original_image = Image::make($image)->orientate()
59+
$original_image = Image::make($image)->orientate()->interlace()
6060
->fit(1920, 1080, function ($constraint) {
6161
$constraint->upsize();
6262
})->encode();
@@ -86,7 +86,7 @@ protected function resizeImage($width, $height, $path, $output_path, $image)
8686
->resize($width, $height, function ($constraint) {
8787
$constraint->aspectRatio();
8888
$constraint->upsize();
89-
})->encode();
89+
})->interlace()->encode();
9090
Storage::put('public/'.$output_path, $image);
9191
}
9292

0 commit comments

Comments
 (0)