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));