class

Vips::Source

Inherits Vips::Connection / Vips::VipsObject / Vips::GObject / Reference / Object

Input connection. For example

source = Vips::Source.new_from_file("k2.jpg")
image = Vips::Image.new_from_source(source)

Class methods

new_from_descriptor(descriptor : Int)

Create a new source from a file descriptor. File descriptors are small integers, for example 0 is stdin.

Pass sources to Image.new_from_source to load images from them.

Source
new_from_file(filename : String)

Create a new source from a file name.

Pass sources to Image.new_from_source to load images from them.

Source
new_from_memory(data : String | Bytes | IO)

Create a new source from an area of memory. Memory areas can be String, Bytes, or IO

Pass sources to Image.new_from_source to load images from them.

Source

Instance methods

finalize
Source