Dont get mimetype of jpeg image

This commit is contained in:
philipp lang 2021-10-30 23:08:08 +02:00
parent a345464d06
commit 1bd0dff59b
1 changed files with 1 additions and 1 deletions

View File

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