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

Reduce png size #320

Merged
merged 1 commit into from Feb 11, 2020
Merged

Reduce png size #320

merged 1 commit into from Feb 11, 2020

Conversation

cgroschupp
Copy link
Contributor

@cgroschupp cgroschupp commented Feb 10, 2020

The vips_pngsave_bridge function uses the VIPS_FOREIGN_PNG_FILTER_NONE filter, which creates a 30% larger image. After switching to the VIPS_FOREIGN_PNG_FILTER_ALL filter, the file size is the same as for files created with another tool.

The default of the 'vipsthumbnail' utility is also the VIPS_FOREIGN_PNG_FILTER_ALL Filter.

Related issues: #221 and h2non/imaginary#237

@h2non h2non merged commit 699493f into h2non:master Feb 11, 2020
@h2non
Copy link
Owner

h2non commented Feb 11, 2020

LGTM!

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

2 participants