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

Add PngExportParams.Filter option to .png export #284

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

bozaro
Copy link
Contributor

@bozaro bozaro commented May 25, 2022

I want to implement something like optipng: try compress .png with differ filter and get smallest image.

More info about the PNG delta filters can be found at http://optipng.sourceforge.net/pngtech/optipng.html on section 2.2.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 76.337% when pulling f13ab51 on joomcode:png-export-filter into e05608b on davidbyttow:master.

@bozaro
Copy link
Contributor Author

bozaro commented May 25, 2022

Interesting observation: looks like C.VIPS_FOREIGN_PNG_FILTER_NONE is default filter value for .png.
But 0 is act as auto and select best filter on my test images...

@tonimelisma tonimelisma merged commit ae9e07f into davidbyttow:master Jun 9, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants