The following code does not affect the image size at all.
$optimizerChain = (new OptimizerChain) ->addOptimizer(new Jpegoptim(['-m85', '--strip-all', '--all-progressive'])) ->addOptimizer(new Pngquant());
$optimizerChain->optimize('../public/admin/images/test.jpg', '../public/admin/images/test_low.jpg');
Also, I don't want to compress the image before downloading and adding it to zip without saving as I am taking images from S3 bucket.
How could I do that?
Thank you!
The following code does not affect the image size at all.
$optimizerChain = (new OptimizerChain) ->addOptimizer(new Jpegoptim(['-m85', '--strip-all', '--all-progressive'])) ->addOptimizer(new Pngquant());$optimizerChain->optimize('../public/admin/images/test.jpg', '../public/admin/images/test_low.jpg');Also, I don't want to compress the image before downloading and adding it to zip without saving as I am taking images from S3 bucket.
How could I do that?
Thank you!