The libvips image processing library
Version | 8.17 |
Authors | libvips team and contributors |
License | LGPL-2.1-or-later |
Website | https://www.libvips.org |
Source | https://github.com/libvips/libvips |
C headers | vips/vips.h |
pkg-config files | vips |
GObject—2.0 | The base type system library |
Browse documentation |
GObject | The base type system library |
Browse documentation |
Connection | An abstract base class representing a source or sink of bytes. |
Foreign | An abstract base class to load and save images in a variety of formats. |
ForeignLoad | An abstract base class to load images in a variety of formats. |
ForeignSave | An abstract base class to save images in a variety of formats. |
Image | The |
Interpolate | An abstract base class for the various interpolation functions. |
Object | An abstract base class for all objects in libvips. |
Operation | An abstract base class for all operations in libvips. |
Region | A |
Sbuf | A |
Source | A |
SourceCustom | Subclass of |
Target | A |
TargetCustom | Subclass of |
ThreadState | A |
Area | |
Argument | Libvips has a simple mechanism for automating at least some aspects of |
ArgumentClass | |
ArgumentInstance | |
ArrayDouble | |
ArrayImage | |
ArrayInt | |
Blob | |
Buf | A message buffer you can append stuff to safely and quickly. If the messagegets too long, you get “…” and truncation. Message buffers can be on thestack or heap. |
Dbuf | |
GInputStream | |
GInputStreamClass | |
Progress | A structure available to eval callbacks giving information on evaluationprogress. See |
Rect | A |
RefString | |
SaveString | |
Semaphore | |
SourceGInputStream | |
SourceGInputStreamClass |
ArgumentTable | |
Pel | A picture element. Cast this to whatever the associated VipsBandFormat saysto get the value. |
Access | The type of access an operation has to supply. See |
Align | See |
Angle | See |
Angle45 | See |
BandFormat | The format used for each band element. |
BlendMode | The various Porter-Duff andPDF blend modes. See |
Coding | How pixels are coded. |
Combine | How to combine values. See |
CombineMode | See |
CompassDirection | A direction on a compass. Used for |
DemandStyle | See |
Direction | See |
Extend | See |
FailOn | How sensitive loaders are to errors, from never stop (very insensitive), tostop on the smallest warning (very sensitive). |
ForeignDzContainer | How many pyramid layers to create. |
ForeignDzDepth | How many pyramid layers to create. |
ForeignDzLayout | What directory layout and metadata standard to use. |
ForeignHeifCompression | The compression format to use inside aHEIF container. |
ForeignHeifEncoder | The selected encoder to use.If libheif hasn’t been compiled with the selected encoder,we will fallback to the default encoder for the compression format. |
ForeignJpegSubsample | |
ForeignPpmFormat | The netpbm file format to save as. |
ForeignSubsample | Set subsampling mode. |
ForeignTiffCompression | The compression types supported by the tiff writer. |
ForeignTiffPredictor | The predictor can help deflate and lzw compression. The values are fixed bythe tiff library. |
ForeignTiffResunit | Use inches or centimeters as the resolution unit for a tiff file. |
ForeignWebpPreset | Tune lossy encoder settings for different image types. |
ImageType | |
Intent | The rendering intent. |
Interesting | Pick the algorithm vips uses to decide image “interestingness”. This is usedby |
Interpretation | How the values in an image should be interpreted. For example, athree-band float image of type |
Kernel | The resampling kernels vips supports. See |
OperationBoolean | See also: |
OperationComplex | See also: |
OperationComplex2 | See also: |
OperationComplexget | See also: |
OperationMath | See also: |
OperationMath2 | See also: |
OperationMorphology | More like hit-miss, really. |
OperationRelational | See also: |
OperationRound | See also: |
PCS | Pick a Profile Connection Space for |
Precision | How accurate an operation should be. |
RegionShrink | How to calculate the output pixels when shrinking a 2x2 region. |
SdfShape | TheSDF to generate,. |
Size | Controls whether an operation should upsize, downsize, both up anddownsize, or force a size. |
TextWrap | Sets the word wrapping style for |
ArgumentFlags | Flags we associate with each object argument. |
ForeignCoding | The set of coding types supported by a saver. |
ForeignFlags | Some hints about the image loader. |
ForeignKeep | Which metadata to retain. |
ForeignPngFilter | The values mirror those of png.h in libpng. |
ForeignSaveable | The set of image types supported by a saver. |
OperationFlags | Flags we associate with an operation. |
ArgumentClassMapFn | |
ArgumentMapFn | |
CallbackFn | |
ClassMapFn | |
GenerateFn | Fill |
ImageMapFn | |
InterpolateMethod | An interpolation function. It should read source pixels from |
ObjectSetArguments | |
OperationBuildFn | |
RegionWrite | The function should write the pixels in |
SinkNotify | |
SListFold2Fn | |
SListMap2Fn | |
SListMap4Fn | |
StartFn | Start a new processing sequence for this generate function. This allocatesper-thread state, such as an input region. |
StopFn | Stop a processing sequence. This freesper-thread state, such as an input region. |
ThreadpoolAllocateFn | This function is called to allocate a new work unit for the thread. It isalways single-threaded, so it can modify per-pool state (such as a counter). |
ThreadpoolProgressFn | This function is called by the main thread once for every work unitprocessed. It can be used to give the user progress feedback. |
ThreadpoolWorkFn | This function is called to process a work unit. Many copies of this can runat once, so it should not write to the per-pool state. It can write toper-thread state. |
ThreadStartFn | |
TypeMap2Fn | |
TypeMapFn |
add_option_entries | Add the standard vips |
allocate_input_array | Convenience function — make a |
amiMSBfirst | |
block_untrusted_set | Set the block state on all untrusted operations. |
break_token | |
cache_drop_all | Drop the whole operation cache, handy for leak tracking. Also calledautomatically on |
cache_get_max | Get the maximum number of operations we keep in cache. |
cache_get_max_files | Get the maximum number of tracked files we allow before we start droppingcached operations. See |
cache_get_max_mem | Get the maximum amount of tracked memory we allow before we start droppingcached operations. See |
cache_get_size | Get the current number of operations in cache. |
cache_operation_build | A binding-friendly version of |
cache_operation_buildp | Look up |
cache_print | Print the whole operation cache to stdout. Handy for debugging. |
cache_set_dump | Handy for debugging. Print the operation cache to stdout just before exit. |
cache_set_max | Set the maximum number of operations we keep in cache. |
cache_set_max_files | Set the maximum number of tracked files we allow before we start droppingcached operations. See |
cache_set_max_mem | Set the maximum amount of tracked memory we allow before we start droppingcached operations. See |
cache_set_trace | Handy for debugging. Print operation cache actions to stdout as we run. |
call |
|
call_argv | |
call_options | |
call_required_optional | This is the main entry point for the C and C++ varargs APIs. |
call_split | |
call_split_option_string | |
check_8or16 | Check that the image is 8 or 16-bit integer, signed or unsigned.Otherwise set an error messageand return non-zero. |
check_bandno |
|
check_bands | Check that the image has |
check_bands_1or3 | Check that the image has either one or three bands.Otherwise set an error messageand return non-zero. |
check_bands_1orn | Check that the images have the same number of bands, or that one of theimages has just 1 band.If not, set an error messageand return non-zero. |
check_bands_1orn_unary | Check that an image has 1 or |
check_bands_atleast | Check that the image has at least |
check_bands_same | Check that the images have the same number of bands.If not, set an error messageand return non-zero. |
check_coding | Check that the image has the required |
check_coding_known | Check that the image is uncoded,LABQ coded orRAD coded.If not, set an error messageand return non-zero. |
check_coding_noneorlabq | Check that the image is uncoded orLABQ coded.If not, set an error messageand return non-zero. |
check_coding_same | Check that the images have the same coding.If not, set an error messageand return non-zero. |
check_complex | Check that the image is complex.Otherwise set an error messageand return non-zero. |
check_format | Check that the image has the specified format.Otherwise set an error messageand return non-zero. |
check_format_same | Check that the images have the same format.If not, set an error messageand return non-zero. |
check_hist | Histogram images must have width or height 1, and must not have more than65536 elements. Return 0 if the image will pass as a histogram, or -1 andset an error message otherwise. |
check_int | Check that the image is in one of the integer formats.Otherwise set an error messageand return non-zero. |
check_matrix | Matrix images must have width and height less than 100000 and have 1 band. |
check_mono | Check that the image has exactly one band.Otherwise set an error messageand return non-zero. |
check_noncomplex | Check that the image is not complex.Otherwise set an error messageand return non-zero. |
check_oddsquare | Check that the image is square and that the sides are odd.If not, set an error messageand return non-zero. |
check_precision_intfloat | Check that |
check_separable | Separable matrix images must have width or height 1.Return 0 if the image will pass, or -1 andset an error message otherwise. |
check_size_same | Check that the images have the same size.If not, set an error messageand return non-zero. |
check_twocomponents | Check that the image is has two “components”, ie. is a one-band complex ora two-band non-complex.Otherwise set an error messageand return non-zero. |
check_u8or16 | Check that the image is 8 or 16-bit unsigned integer.Otherwise set an error messageand return non-zero. |
check_u8or16orf | Check that the image is 8 or 16-bit unsigned integer, or float.Otherwise set an error message and return non-zero. |
check_uint | Check that the image is in one of the unsigned integer formats.Otherwise set an error messageand return non-zero. |
check_uintorf | Check that the image is unsigned int or float.Otherwise set an error message and return non-zero. |
check_uncoded | Check that the image is not coded.If not, set an error messageand return non-zero. |
check_vector | Operations with a vector constant need a 1-element vector, or a vector withthe same number of elements as there are bands in the image, or a 1-bandimage and a many-element vector. |
check_vector_length | Check that |
class_find | Search below |
class_map_all | Loop over all the subclasses of |
col_ab2Ch | |
col_ab2h | |
col_C2Ccmc | Calculate Ccmc from C. |
col_Ccmc2C | Calculate C from Ccmc using a table.Call |
col_Ch2ab | Calculate ab from Ch, h in degrees. |
col_Ch2hcmc | Calculate hcmc from C and h. |
col_Chcmc2h | Calculate h from C and hcmc, using a table.Call |
col_dE00 | CIEDE2000, from:. |
col_L2Lcmc | Calculate Lcmc from L. |
col_Lab2XYZ | CalculateXYZ from Lab, D65. |
col_Lcmc2L | Calculate L from Lcmc using a table. Call |
col_make_tables_CMC | Make the lookup tables for cmc. |
col_scRGB2BW_16 | |
col_scRGB2BW_8 | |
col_scRGB2sRGB_16 | |
col_scRGB2sRGB_8 | |
col_scRGB2XYZ | Turn scRGB intoXYZ. |
col_sRGB2scRGB_16 | |
col_sRGB2scRGB_16_noclip | |
col_sRGB2scRGB_8 | |
col_sRGB2scRGB_8_noclip | |
col_XYZ2Lab | CalculateXYZ from Lab, D65. |
col_XYZ2scRGB | TurnXYZ into scRGB. |
concurrency_get | Returns the number of worker threads that vips should use when running |
concurrency_set | Sets the number of worker threads that vips should use when running |
enum_from_nick | |
enum_nick | |
enum_string | |
error | Format the string in the style of |
error_buffer | Get a pointer to the start of the error buffer as a C string.The string is owned by the error system and must not be freed. |
error_buffer_copy | Return a copy of the vips error buffer, and clear it. |
error_clear | Clear and reset the error buffer. This is typically called after presentingan error to the user. |
error_exit | Sends a formatted error message to stderr, then sends the contents of theerror buffer, if any, then shuts down vips and terminates the program withan error code. |
error_freeze | Stop errors being logged. Use |
error_g | This function sets the glib error pointer from the vips error buffer andclears it. It’s handy for returning errors to glib functions from vips. |
error_system | Format the string in the style of |
error_thaw | Re-enable error logging. |
existsf | |
file_length | |
filename_get_filename | Given a vips filename like “fred.jpg[Q=90]”, return a new string ofjust the filename part, “fred.jpg” in this case. |
filename_get_options | Given a vips filename like “fred.jpg[Q=90]”, return a new string ofjust the options part, “[Q=90]” in this case. |
filename_suffix_match | |
flags_from_nick | |
foreign_flags | Return the flags for |
format_sizeof | |
format_sizeof_unsafe | A fast but dangerous version of |
g_error | This function adds the |
g_input_stream_new_from_source | Create a new |
g_thread_new | Wrapper for |
get_argv0 | See also
|
get_disc_threshold | Return the number of bytes at which we flip between open via memory andopen via disc. This defaults to 100mb, but can be changed with the |
get_prgname | Return the program name. |
guess_libdir |
|
guess_prefix |
|
hash_table_map | Like slist map, but for a hash table. |
icc_is_compatible_profile | |
icc_present | VIPS can optionally be built without theICC library. Use this function totest for its availability. |
init | This function starts up libvips, see |
interpolate | Look up the |
iscasepostfix | |
isdirf | |
ispoweroftwo | |
isprefix | |
leak_set | Turn on or off vips leak checking. See also |
malloc |
|
map_equal | |
max_coord_get | Return the maximum coordinate value. This can be the default, a value setset by the |
mkdirf | |
nickname_find | Return theVIPS nickname for a |
pipe_read_limit_set | If a source does not support mmap or seek and the source isused with a loader that can only work from memory, then the data will beautomatically read into memory toEOF before the loader starts. This canproduce high memory use if the descriptor represents a large object. |
profile_set | If set, vips will record profiling information, and dump it on programexit. These profiles can be analysed with the |
pythagoras | Pythagorean distance between two points in colour space. Lab/XYZ/CMC etc. |
realpath | |
rename | |
rmdirf | |
shutdown | Call this to drop caches, close plugins, terminate background threads, andfinalize any internal library testing. |
sink_memory | Loops over |
slist_equal | Test two lists for equality. |
slist_filter | Remove all occurrences of an item from a list.Returns the new head of the list. |
slist_fold2 | Fold over a slist, applying |
slist_free_all | Free a |
slist_map2 | Map over a slist. _copy() the list in case the callback changes it. |
slist_map2_rev | Map backwards. We _reverse() rather than recurse and unwind to save stack. |
slist_map4 | Map over a slist. _copy() the list in case the callback changes it. |
start_many | Start function for many images in. |
start_one | Start function for one image in. Input image is |
stop_many | Stop function for many images in. |
stop_one | Stop function for one image in. Input image is |
strdup |
|
strtod | |
thread_execute | A newly created or reused thread will execute |
thread_isvips | |
thread_shutdown | Free any thread-private data and flush any profiling information. |
threadpool_run | This function runs a set of threads over an image. Each thread first calls |
tracked_aligned_alloc | Allocate an area of memory aligned on a boundary specifiedby |
tracked_aligned_free | Only use it to free memory that waspreviously allocated with |
tracked_close | Exactly as |
tracked_free | Only use it to free memory that waspreviously allocated with |
tracked_get_allocs | Returns the number of active allocations. |
tracked_get_files | Returns the number of open files. |
tracked_get_mem | Returns the number of bytes currently allocated via |
tracked_get_mem_highwater | Returns the largest number of bytes simultaneously allocated via |
tracked_malloc | Allocate an area of memory that will be tracked by |
tracked_open | Exactly as |
type_depth | |
type_find | Search below |
type_map | Map over a type’s children. Stop when |
type_map_all | Map over a type’s children, direct and indirect. Stop when |
value_get_area | Get the pointer from an area. Don’t touch count (area is static). |
value_get_array | Return the pointer to the array held by |
value_get_array_double | Return the start of the array of doubles held by |
value_get_array_image | Return the start of the array of images held by |
value_get_array_int | Return the start of the array of ints held by |
value_get_array_object | Return the start of the array of |
value_get_blob | Returns the data pointer from a blob. Optionally returns the length too. |
value_get_ref_string | Get the C string held internally by the |
value_get_save_string | Get the C string held internally by the GValue. |
value_is_null | |
value_set_area | Set value to be a ref-counted area of memory with a free function. |
value_set_array | Set |
value_set_array_double | Set |
value_set_array_image | Set |
value_set_array_int | Set |
value_set_array_object | Set |
value_set_blob | Sets |
value_set_blob_free | Just like |
value_set_ref_string | Copies the C string |
value_set_save_string | Copies the C string into |
value_set_save_stringf | Generates a string and copies it into |
vector_disable_targets | Takes a bitfield of targets to disable on the runtime platform.Handy for testing and benchmarking purposes. |
vector_get_builtin_targets | Gets a bitfield of builtin targets that libvips was built with. |
vector_get_supported_targets | Gets a bitfield of enabled targets that are supported on thisCPU. Thetargets returned may change after calling |
vector_isenabled | |
vector_set_enabled | |
vector_target_name | Generates a human-readableASCII string descriptor for a specific target. |
verror | Append a message to the error buffer. |
verror_system | Format the string in the style of |
version | Get the major, minor or micro library version, with |
version_string | Get theVIPS version as a static string, including a build date and time.Do not free. |
ABS | |
ALIGNED | |
ARG_BOOL | |
ARG_BOXED | |
ARG_DOUBLE | |
ARG_ENUM | |
ARG_FLAGS | |
ARG_IMAGE | |
ARG_INT | |
ARG_INTERPOLATE | |
ARG_OBJECT | |
ARG_POINTER | |
ARG_STRING | |
ARG_UINT64 | |
ARGUMENT_COLLECT_SET | |
ARGUMENT_FOR_ALL | |
ARRAY | Allocate memory for an array of objects of type |
ARRAY_ADDR | |
BUF_STATIC | Initialize a heap buffer. For example:. |
CEIL | |
CLIP | |
CLIP_CHAR | |
CLIP_NONE | |
CLIP_SHORT | |
CLIP_UCHAR | |
CLIP_UINT | |
CLIP_USHORT | |
COUNT_PIXELS | |
DEG | |
DEPRECATED_FOR | |
DEPRECATED_MACRO_FOR | |
FABS | |
FCLIP | |
FLOOR | |
FMAX | |
FMIN | |
FREE | |
FREEF | |
GATE_FREE | |
GATE_MALLOC | |
GATE_START | |
GATE_STOP | |
IMAGE_ADDR | This macro returns a pointer to a pixel in an image, cast to a |
IMAGE_N_ELEMENTS | |
IMAGE_N_PELS | |
IMAGE_SIZEOF_ELEMENT | |
IMAGE_SIZEOF_IMAGE | |
IMAGE_SIZEOF_LINE | |
IMAGE_SIZEOF_PEL | |
INIT |
|
ISNAN | |
MALLOC | |
MATRIX | This macro returns a pointer to a pixel in an image, cast to a double*. Theimage must have a single band, be |
MAX | |
MIN | |
NEW | Allocate memory for a thing of type |
NUMBER | |
object_local | |
ONCE | |
RAD | |
RECT_BOTTOM | |
RECT_HCENTRE | |
RECT_RIGHT | |
RECT_VCENTRE | |
REGION_ADDR | This macro returns a pointer to a pixel in a region. The ( |
REGION_ADDR_TOPLEFT | This macro returns a pointer to the top-left pixel in the |
REGION_LSKIP | |
REGION_N_ELEMENTS | |
REGION_SIZEOF_ELEMENT | |
REGION_SIZEOF_LINE | |
REGION_SIZEOF_PEL | |
RINT | |
ROUND | |
ROUND_DOWN | |
ROUND_INT | |
ROUND_UINT | |
ROUND_UP | |
SBUF_FETCH | After a successful |
SBUF_GETC | Fetch the next character from the source. |
SBUF_PEEK | After a successful |
SBUF_REQUIRE | Make sure at least |
SBUF_UNGETC | The opposite of |
SETSTR | |
SWAP | |
TARGET_CLONES | |
TARGET_PUTC | |
UNREF | |
UNROLL |
A_X0 | Areas under curves for illuminant A (2856K), 2 degree observer. |
A_Y0 | |
A_Z0 | |
ARGUMENT_OPTIONAL_INPUT | |
ARGUMENT_OPTIONAL_OUTPUT | |
ARGUMENT_REQUIRED_INPUT | |
ARGUMENT_REQUIRED_OUTPUT | |
B_X0 | Areas under curves for illuminant B (4874K), 2 degree observer. |
B_Y0 | |
B_Z0 | |
C_X0 | Areas under curves for illuminant C (6774K), 2 degree observer. |
C_Y0 | |
C_Z0 | |
CONFIG | |
D3250_X0 | Areas under curves for black body at 3250K, 2 degree observer. |
D3250_Y0 | |
D3250_Z0 | |
D50_X0 | Areas under curves for D50, 2 degree observer. |
D50_Y0 | |
D50_Z0 | |
D55_X0 | Areas under curves for D55, 2 degree observer. |
D55_Y0 | |
D55_Z0 | |
D65_X0 | Areas under curves for D65, 2 degree observer. |
D65_Y0 | |
D65_Z0 | |
D75_X0 | Areas under curves for D75, 2 degree observer. |
D75_Y0 | |
D75_Z0 | |
D93_X0 | Areas under curves for D93, 2 degree observer. |
D93_Y0 | |
D93_Z0 | |
DEFAULT_MAX_COORD | |
E_X0 | Areas under curves for equal energy illuminant E. |
E_Y0 | |
E_Z0 | |
ENABLE_DEPRECATED | |
INTERPOLATE_SCALE |
|
INTERPOLATE_SHIFT | Many of the vips interpolators use fixed-point arithmetic for valuecalculation. This is how many bits of precision they use. |
LIBRARY_AGE | |
LIBRARY_CURRENT | |
LIBRARY_REVISION | |
MAGIC_INTEL | The first four bytes of aVIPS file in Intel byte ordering. |
MAGIC_SPARC | The first four bytes of aVIPS file inSPARC byte ordering. |
MAJOR_VERSION | |
META_BITS_PER_SAMPLE | The bits per sample for each channel. |
META_CONCURRENCY | If set, the suggested concurrency for this image. |
META_EXIF_NAME | The name that read and write operations use for the image’sEXIF data. |
META_ICC_NAME | The name we use to attach anICC profile. The file read and writeoperations forTIFF,JPEG,PNG and others use this item of metadata toattach and saveICC profiles. The profile is updated by the |
META_IMAGEDESCRIPTION | TheIMAGEDESCRIPTION tag. Often has useful metadata. |
META_IPTC_NAME | The name that read and write operations use for the image’sIPTC data. |
META_LOADER | Record the name of the original loader here. Handy for hinting file formatsand for debugging. |
META_N_PAGES | If set, the number of pages in the original file. |
META_N_SUBIFDS | If set, the number of subifds in the first page of the file. |
META_ORIENTATION | The orientation tag for this image. An int from 1 - 8 using the standardexif/tiff meanings. |
META_PAGE_HEIGHT | If set, the height of each page when this image was loaded. If you save animage with “page-height” set to a format that supports multiple pages, suchas tiff, the image will be saved as a series of pages. |
META_PALETTE | Does this image have a palette? |
META_PHOTOSHOP_NAME | The name thatTIFF read and write operations use for the image’sTIFFTAG_PHOTOSHOP data. |
META_RESOLUTION_UNIT | TheJPEG andTIFF read and write operations use this to record thefile’s preferred unit for resolution. |
META_SEQUENTIAL | Images loaded via |
META_XMP_NAME | The name that read and write operations use for the image’sXMP data. |
MICRO_VERSION | |
MINOR_VERSION | |
PATH_MAX | |
PI | |
SBUF_BUFFER_SIZE | |
TARGET_BUFFER_SIZE | |
TARGET_CUSTOM_BUFFER_SIZE | |
TRANSFORM_SCALE |
|
TRANSFORM_SHIFT | Many of the libvips interpolators use fixed-point arithmetic for coordinatecalculation. This is how many bits of precision they use. |
VERSION | |
VERSION_STRING |