module Vips
Overview
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.
Defined in:
vips.crvips/connection.cr
vips/ext/image.cr
vips/ext/mutableimage.cr
vips/gobject.cr
vips/gvalue.cr
vips/image.cr
vips/interpolate.cr
vips/introspect.cr
vips/mutableimage.cr
vips/operation.cr
vips/region.cr
vips/source.cr
vips/stats.cr
vips/target.cr
vips/vips.cr
vips/vipsblob.cr
vips/vipsobject.cr
Constant Summary
-
VERSION =
{{ (`shards version \"/home/runner/work/crystal-vips/crystal-vips/src\"`).chomp.stringify }}
Class Method Summary
-
.at_least_libvips?(x : Int, y : Int, z = 0)
Is this at least libvips major.minor.[.patch]?
- .clear_error
-
.concurrency
Returns the number of worker threads that vips uses for image evaluation.
-
.concurrency=(value : Int)
Set the size of the pools of worker threads vips uses for image evaluation.
-
.default_concurrency : Int32
Track the original default concurrency so we can reset to it.
-
.enum_values(type : LibC::ULong)
Get all values for a enum (GType).
-
.free(mem : Pointer(Void))
Frees the memory pointed to by
mem
-
.fundamental_type(type : LibC::ULong)
Extract the fundamental type ID portion.
-
.get_enums
Get a list of enums available within the libvips library.
-
.get_operations
Get a list of operations available within the libvips library.
-
.get_suffixes
Get a list of all the filename suffixes supported by libvips Note: At least libvips 8.8 is needed
-
.init
Starts up the world of VIPS.
-
.initialized?
Flag to tell if libvips has been initialized or not.
-
.leak=(leak)
Enable or disable libvips leak checking.
-
.leak?
Enable or disable libvips leak checking.
-
.nickname(type : LibC::ULong)
Return the nickname for a GType.
- .profile(profile)
-
.profile=(profile)
Enable or disable libvips profile recording.
-
.profile?
Enable or disable libvips profile recording.
-
.report_leaks
Reports leaks (hopefully there are none) it also tracks and reports peak memory use.
- .shutdown
-
.type_from_name(nickname : String)
Return the GType for a name.
-
.typefind(basename : String, nickname : String)
Get the GType for a name.
-
.typename(type : LibC::ULong)
Returns the name for a GType
-
.vector=(val : Bool)
Enable SIMD and the run-time compiler.
-
.vector?
Returns if SIMD and the run-time compiler is enabled or not
-
.version(flag : Int)
Get the major, minor or patch version number of the libvips library.
-
.version
Returns version of libvips in 3-byte integer
-
.version_string
Returns version string of libvips
Class Method Detail
Is this at least libvips major.minor.[.patch]?
Set the size of the pools of worker threads vips uses for image evaluation.
Track the original default concurrency so we can reset to it.
Get a list of operations available within the libvips library. This can be useful for documentation generators
Get a list of all the filename suffixes supported by libvips Note: At least libvips 8.8 is needed
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.
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.
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.
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.
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.
Reports leaks (hopefully there are none) it also tracks and reports peak memory use.
Get the GType for a name. Looks up the GType for a nickname. Types below basename in the type hierarchy are searched.
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.
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.