Skip to content

Image is not being compressed It produces the image with same size #179

Description

@shuaibaslam2019

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions