From 1bd0dff59b3dec90825e25a0f1159f399b8185b4 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 30 Oct 2021 23:08:08 +0200 Subject: [PATCH] Dont get mimetype of jpeg image --- compressors/JpgCompressor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compressors/JpgCompressor.php b/compressors/JpgCompressor.php index b2851d7..18d6e7c 100644 --- a/compressors/JpgCompressor.php +++ b/compressors/JpgCompressor.php @@ -2,6 +2,7 @@ namespace Aweos\Resizer\Compressors; +use Aweos\Resizer\Exceptions\ResizerException; use Illuminate\Support\Collection; use Intervention\Image\ImageManager; use Storage; @@ -21,7 +22,6 @@ class JpgCompressor extends Compressor { public function make(string $path): array { $output = $this->tmpPath(); - $mimetype = mime_content_type($path); system('imagemin '.escapeshellarg($path).' --plugin=jpegtran --plugin=mozjpeg --plugin.mozjpeg.quality=70 > '.escapeshellarg($output)); system("mv ".escapeshellarg($output)." ".escapeshellarg($path));