Dont get mimetype of jpeg image
This commit is contained in:
parent
a345464d06
commit
1bd0dff59b
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Aweos\Resizer\Compressors;
|
namespace Aweos\Resizer\Compressors;
|
||||||
|
|
||||||
|
use Aweos\Resizer\Exceptions\ResizerException;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Intervention\Image\ImageManager;
|
use Intervention\Image\ImageManager;
|
||||||
use Storage;
|
use Storage;
|
||||||
|
@ -21,7 +22,6 @@ class JpgCompressor extends Compressor {
|
||||||
public function make(string $path): array
|
public function make(string $path): array
|
||||||
{
|
{
|
||||||
$output = $this->tmpPath();
|
$output = $this->tmpPath();
|
||||||
$mimetype = mime_content_type($path);
|
|
||||||
|
|
||||||
system('imagemin '.escapeshellarg($path).' --plugin=jpegtran --plugin=mozjpeg --plugin.mozjpeg.quality=70 > '.escapeshellarg($output));
|
system('imagemin '.escapeshellarg($path).' --plugin=jpegtran --plugin=mozjpeg --plugin.mozjpeg.quality=70 > '.escapeshellarg($output));
|
||||||
system("mv ".escapeshellarg($output)." ".escapeshellarg($path));
|
system("mv ".escapeshellarg($output)." ".escapeshellarg($path));
|
||||||
|
|
Loading…
Reference in New Issue