Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compress PNG format image by using Imagick #40

Open
ravitejamsr opened this issue Jul 17, 2020 · 3 comments
Open

How to compress PNG format image by using Imagick #40

ravitejamsr opened this issue Jul 17, 2020 · 3 comments

Comments

@ravitejamsr
Copy link

Hi

I was trying to compress PNG format image but its not working properly below is the code i was using

$i->setImageFormat("png");
$i->setImageCompression(Imagick::COMPRESSION_ZIP);
$i->setOption('png:compression-level',7);
$i->setOption('png:compression-strategy',4);
$i->setOption('png:compression-filter',4);
$i->setOption('png:format','png8');
$i->setOption('png:bit-depth',8);
$i->stripImage();
@Danack
Copy link
Collaborator

Danack commented Jul 17, 2020

"its not working properly"

It's sitting at home playing xbox and eating doritos?

Please describe the actual problem not just "it isn't working".

@ravitejamsr
Copy link
Author

ravitejamsr commented Jul 17, 2020

@Danack

I was trying to compress the PNG format image with Imagick when i compress the 5.5 MB image size is reducing by 30KB like that and the result image is 5.2 MB but i want to compress the image by 3MB

@Sublan
Copy link

Sublan commented Nov 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants