class

MiniMagick::Tool

Inherits Reference < Object

Tool subclasses, mirroring mini_magick's Tool::Convert etc.

Constructors

new(name : String)
Source
new(*args, **options, &block : self -> Nil)
Source

Instance methods

+(*values : String) : self
Source
<<(arg) : self

Appends raw options, useful for appending image paths.

Source
args
Source
call

Executes the command that has been built up.

Source
canvas(value = nil) : self
Source
clone(*args) : self

This option is a valid ImageMagick option, but it's also a common method name, so it's defined explicitly to act as an option method.

Source
command

The currently built-up command.

Source
executable

The executable used for this tool.

Source
gradient(value = nil) : self
Source
logo(value = nil) : self
Source
merge!(new_args) : self

Merges a list of raw options.

Source
name
Source
option(name : String, values : Array = [] of String) : self

Runtime application of an option ("name" + optional values), used by ImageProcessing's loader/saver option handling. Equivalent to what the generated option methods do.

Source
pango(value = nil) : self
Source
pattern(value = nil) : self
Source
plasma(value = nil) : self
Source
plus

Changes the last operator to its "plus" form, e.g. "-strip" to "+strip". This is the port of mini_magick's Tool#+. Zero-argument overloads are spelled out because a restricted splat does not match calls without arguments, which would fall through to method_missing.

Source
plus(*values : String) : self
Source
radial_gradient(value = nil) : self
Source
rose(value = nil) : self
Source
run_operation(name : String, args : Array(Vips::Value), options : Hash(String, Vips::Value), block : Proc(Vips::Image | MiniMagick::Tool | String, Vips::Image | MiniMagick::Tool | String | Nil) | Nil = nil) : self

Dispatches an arbitrary operation by name at runtime (the accumulator side of ImageProcessing's operation application).

Source
stack(*args, &block : self -> Nil) : self

Creates an ImageMagick stack (parentheses) in the command.

Source
stack(*args) : self
Source
stdin

Adds ImageMagick's pseudo-filename - for standard input.

Source
stdout

Adds ImageMagick's pseudo-filename - for standard output.

Source
text(value = nil) : self
Source
xc(value = nil) : self
Source

Macros

method_missing(call)

Any undefined method will be transformed into a CLI option.

Source

Nested types