### Discussed in https://github.com/libvips/ruby-vips/discussions/358 <div type='discussions-op-text'> <sup>Originally posted by **tonymarklove** January 25, 2023</sup> 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](https://github.com/libvips/libvips/blob/815b4990766325186dcbe4cf220d40db33d446ed/libvips/include/vips/foreign.h#L672) 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`?</div>