class Vips::SourceCustom

A source you can attach action signal handlers to to implement custom input types.

For example:

“‘ruby file = File.open “some/file/name”, “rb” source = Vips::SourceCustom.new source.on_read { |length| file.read length } image = Vips::Image.new_from_source source “`

(just an example – of course in practice you’d use {Source#new_from_file} to read from a named file)