How to use pngsave's filter option (Vips::ForeignPngFilter) #358
Replies: 2 comments 2 replies
-
Hi @tonymarklove, They are actually a set of flag bits your can OR together rather than an enum. I think we were just a little unsure how to best handle these in ruby. There are quite a few missing enums -- really we should autogenerate these from introspection in the way that the python binding does. https://github.com/libvips/pyvips/blob/master/examples/gen-enums.py Though now I look that doesn't handle flag bit enums either. |
Beta Was this translation helpful? Give feedback.
2 replies
-
There's a PR for this feature: So it should be officially supported soon. |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After digging into the
ruby-vips
code I can't see anywhere thatVips::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.
Am I missing a simpler way to do this? Or are these filter constants missing from
ruby-vips
?Beta Was this translation helpful? Give feedback.
All reactions