Image is not being compressed It produces the image with same size #180
Unanswered
shuaibaslam2019
asked this question in
Q&A
Replies: 2 comments
|
Hello there, Anyone could help me? |
0 replies
|
I faced the same problem. Solution was to install I found that in OptimizerChain (https://github.com/spatie/image-optimizer/blob/main/src/OptimizerChain.php) this error is logged image-optimizer/src/OptimizerChain.php Line 81 in 02e2717 Or try to check what exact error message your particular optimizer returns. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 want to compress the image before adding it to the zip and without saving elsewhere, as I am taking images from S3 bucket.
How could I do that?
Thank you!
All reactions