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 use pngsave's filter option (Vips::ForeignPngFilter) #359

Open
jcupitt opened this issue Jan 28, 2023 Discussed in #358 · 1 comment
Open

How to use pngsave's filter option (Vips::ForeignPngFilter) #359

jcupitt opened this issue Jan 28, 2023 Discussed in #358 · 1 comment

Comments

@jcupitt
Copy link
Member

jcupitt commented Jan 28, 2023

Discussed in #358

Originally posted by tonymarklove January 25, 2023
After digging into the ruby-vips code I can't see anywhere that Vips::ForeignPngFilter is defined.

After some investigation it appears that the PNG saving functions in Ruby accept the values as defined in the C enum eg.

image.pngsave('file.png', filter: 0xF8)

Am I missing a simpler way to do this? Or are these filter constants missing from ruby-vips?

@jcupitt
Copy link
Member Author

jcupitt commented Jan 28, 2023

See discussion for possible API.

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

No branches or pull requests

1 participant