module

Vips

Provides Crystal language interface to the libvips image processing library. Programs that use libvips don't manipulate images directly, instead they create pipelines of image processing operations starting from a source image. When the pipe is connected to a destination, the whole pipeline executes at once and in parallel, streaming the image from source to destination in a set of small fragments.

Constants

VERSION = {{ (`shards version \"/tmp/tmp.hPdFIo/src/src\"`).chomp.stringify }}

Class methods

at_least_libvips?(x : Int, y : Int, z = 0)

Is this at least libvips major.minor.[.patch]?

Source
clear_error
Source
concurrency

Returns the number of worker threads that vips uses for image evaluation.

Source
concurrency=(value : Int)

Set the size of the pools of worker threads vips uses for image evaluation.

Source
default_concurrency

Track the original default concurrency so we can reset to it.

Source
enum_values(type : LibC::ULong)

Get all values for a enum (GType).

Source
free(mem : Pointer(Void))

Frees the memory pointed to by mem

Source
fundamental_type(type : LibC::ULong)

Extract the fundamental type ID portion.

Source
get_enums

Get a list of enums available within the libvips library.

Source
get_operations

Get a list of operations available within the libvips library. This can be useful for documentation generators

Source
get_suffixes

Get a list of all the filename suffixes supported by libvips Note: At least libvips 8.8 is needed

Source
init

Starts up the world of VIPS. this function is automatically called

Source
initialized?

Flag to tell if libvips has been initialized or not. initialization will happen at the load of module and you should only call Vips#init if auto initialization failed.

Source
leak=(leak)

Enable or disable libvips leak checking. When enabled, libvips will check for object and area leaks on exit. Enabling this option will make libvips run slightly more slowly.

Source
leak?

Enable or disable libvips leak checking. When enabled, libvips will check for object and area leaks on exit. Enabling this option will make libvips run slightly more slowly.

Source
nickname(type : LibC::ULong)

Return the nickname for a GType.

Source
profile(profile)
Source
profile=(profile)

Enable or disable libvips profile recording. If set, vips will record profiling information, and dump it on program exit. These profiles can be analyzed with the vipsprofile program.

Source
profile?

Enable or disable libvips profile recording. If set, vips will record profiling information, and dump it on program exit. These profiles can be analyzed with the vipsprofile program.

Source
report_leaks

Reports leaks (hopefully there are none) it also tracks and reports peak memory use.

Source
shutdown
Source
type_from_name(nickname : String)

Return the GType for a name.

Source
typefind(basename : String, nickname : String)

Get the GType for a name. Looks up the GType for a nickname. Types below basename in the type hierarchy are searched.

Source
typename(type : LibC::ULong)

Returns the name for a GType

Source
vector=(val : Bool)

Enable SIMD and the run-time compiler. This can give a nice speed-up, but can also be unstable on some systems or with some versions of the run-time compiler.

Source
vector?

Returns if SIMD and the run-time compiler is enabled or not

Source
version(flag : Int)

Get the major, minor or patch version number of the libvips library. Pass 0 to get the major version number 1 to get minor, 2 to get patch.

Source
version

Returns version of libvips in 3-byte integer

Source
version_string

Returns version string of libvips

Source

Nested types