Vips::Image
Constructors
Loads an image from disk using the operation that libvips picks for the filename (e.g. "jpegload"). Raises Vips::Error for unknown formats.
Instance methods
add_alpha
libvips removed the dedicated "add_alpha" operation; append a constant band holding the maximum alpha value of the image's format.
autorot
Sourceavg
Sourcebands
Sourcecomposite(overlay : Image, mode, **options) : Image
Sourceconv(mask : Image, **options) : Image
Sourcecopy
Sourceformat
Sourceget_fields
Sourcegravity(direction : Symbol | String, width : Int32, height : Int32, options : Hash(String, Value)) : Image
Sourcehas_alpha?
Sourceheight
Sourcerot180
Sourcerot270
Sourcerot90
Sourcerun_operation(name : String, args : Array(Value), options : Hash(String, Value), block : Proc(Vips::Image | MiniMagick::Tool | String, Vips::Image | MiniMagick::Tool | String | Nil) | Nil = nil) : OpResult | Nil
Dispatches an arbitrary operation with self as the first input, used
by ImageProcessing::Processor for operations not defined above.
similarity
Sourcesize
Sourceto_unsafe
Sourcewidth
SourceMacros
method_missing(call)
Any undefined method is turned into a vips operation call with the image as the first argument (mirrors ruby-vips' method_missing).