How to use pngsave's filter option (Vips::ForeignPngFilter) #358
Unanswered
tonymarklove
asked this question in
Q&A
Replies: 1 comment 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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