Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
FunctionsTypes and Values
DescriptionThese operations convert an image in some way. They can be split into a two main groups. The first set of operations change an image's format in some way. You can change the band format (for example, cast to 32-bit unsigned int), form complex images from real images, convert images to matrices and back, change header fields, and a few others. The second group move pixels about in some way. You can flip, rotate, extract, insert and join pairs of images in various ways. Functionsvips_copy ()int vips_copy ( Optional arguments:
Copy an image, optionally modifying the header. VIPS copies images by copying pointers, so this operation is instant, even for very large images. You can optionally change any or all header fields during the copy. You can make any change which does not change the size of a pel, so for example you can turn a 4-band uchar image into a 2-band ushort image, but you cannot change a 100 x 100 RGB image into a 300 x 100 mono image. See also: [method] vips_tilecache ()int vips_tilecache ( Optional arguments:
This operation behaves rather like Each cache tile is made with a single call to
When the cache fills, a tile is chosen for reuse. If By default, Normally, only a single thread at once is allowed to calculate tiles. If
you set Normally the cache is dropped when computation finishes. Set See also: [method] vips_linecache ()int vips_linecache ( Optional arguments:
This operation behaves rather like The number of lines cached is enough for a small amount of non-local access. Each cache tile is made with a single call to
When the cache fills, a tile is chosen for reuse. If
Normally, only a single thread at once is allowed to calculate tiles. If
you set See also: [method] vips_sequential ()int vips_sequential ( Optional arguments:
This operation behaves rather like
See also: [method] vips_cache ()int vips_cache ( Optional arguments:
This operation behaves rather like This operation is a thin wrapper over It uses a set of background threads to calculate pixels and the various active cache operations coordinate so as not to overwhelm your system. When a request is made for an area of pixels, the operation will block until all of those pixels have been calculated. Pixels are calculated with a set of threads. See also: [method] vips_copy_file ()int vips_copy_file ( A simple convenience function to copy an image to a file, then copy again to output. If the image is already a file, just copy straight through. The file is allocated with See also: [method] vips_embed ()int vips_embed ( Optional arguments:
The opposite of
See also: [method] vips_gravity ()int vips_gravity ( Optional arguments:
The opposite of
See also: vips_flip ()int vips_flip ( Flips an image left-right or up-down. See also: [method] vips_insert ()int vips_insert ( Optional arguments:
Insert Normally If If the number of bands differs, one of the images must have one band. In this case, an n-band image is formed from the one-band image by joining n copies of the one-band image together, and then the two n-band images are operated upon. The two input images are cast up to the smallest common type (see table Smallest common format in arithmetic).See also: [method] vips_join ()int vips_join ( Optional arguments:
Join If one is taller or wider than the
other, Use Use Use If the number of bands differs, one of the images must have one band. In this case, an n-band image is formed from the one-band image by joining n copies of the one-band image together, and then the two n-band images are operated upon. The two input images are cast up to the smallest common type (see table Smallest common format in arithmetic).If you are going to be joining many thousands of images in a regular
grid, See also: vips_arrayjoin ()int vips_arrayjoin ( Optional arguments:
Lay out the images in Each input image is placed with a box of size Space between images is filled with Images are positioned within their Boxes are joined and separated by If the number of bands in the input images differs, all but one of the images must have one band. In this case, an n-band image is formed from the one-band image by joining n copies of the one-band image together, and then the n-band images are operated upon. The input images are cast up to the smallest common type (see table Smallest common format in arithmetic).See also: vips_extract_area ()int vips_extract_area ( Extract an area from an image. The area must fit within See also: [method] vips_crop ()int vips_crop ( A synonym for See also: [method] vips_smartcrop ()int vips_smartcrop ( Optional arguments:
Crop an image down to a specified width and height by removing boring parts. Use You can test xoffset / yoffset on See also: [method] vips_extract_band ()int vips_extract_band ( Optional arguments:
Extract a band or bands from an image. Extracting out of range is an error. See also: [method] vips_replicate ()int vips_replicate ( Repeats an image many times. See also: [method] vips_grid ()int vips_grid ( Chop a tall thin image up into a set of tiles, lay the tiles out in a grid. The input image should be a very tall, thin image containing a list of
smaller images. Volumetric or time-sequence images are often laid out like
this. This image is chopped into a series of tiles, each Supplying See also: [method] vips_transpose3d ()int vips_transpose3d ( Optional arguments:
Transpose a volumetric image. Volumetric images are very tall, thin images, with the metadata item VIPS_META_PAGE_HEIGHT set to the height of each sub-image. This operation swaps the two major dimensions, so that page N in the output contains the Nth scanline, in order, from each input page. You can override the VIPS_META_PAGE_HEIGHT metadata item with the optional
VIPS_META_PAGE_HEIGHT in the output image is the number of pages in the input image. See also: [method] vips_wrap ()int vips_wrap ( Optional arguments:
Slice an image up and move the segments about so that the pixel that was
at 0, 0 is now at See also: [method] vips_rot ()int vips_rot ( Rotate Use See also: [method] vips_rot90 ()int vips_rot90 ( Rotate See also: vips_rot180 ()int vips_rot180 ( Rotate See also: [method] vips_rot270 ()int vips_rot270 ( Rotate See also: [method] vips_rot45 ()int vips_rot45 ( Optional arguments:
Rotate This operation is useful for rotating convolution masks. Use
See also: [method] vips_autorot_get_angle ()VipsAngle
vips_autorot_get_angle (
Examine the metadata on See also: vips_autorot_remove_angle ()void
vips_autorot_remove_angle (
Remove the orientation tag on See also: [method] vips_autorot ()int vips_autorot ( Optional arguments:
Look at the image metadata and rotate the image to make it upright. The
VIPS_META_ORIENTATION tag is removed from Read vips only supports the four simple rotations, it does not support the various mirror modes. If the image is using one of these mirror modes, the image is not rotated and the VIPS_META_ORIENTATION tag is not removed. See also: [method] vips_zoom ()int vips_zoom ( Zoom an image by repeating pixels. This is fast nearest-neighbour zoom. See also: [method] vips_subsample ()int vips_subsample ( Optional arguments:
Subsample an image by an integer fraction. This is fast, nearest-neighbour shrink. For small horizontal shrinks, this operation will fetch lines of pixels
from If See also: [method] vips_cast ()int vips_cast ( Optional arguments:
Convert Casting from complex to real returns the real part. If See also: [method] vips_cast_uchar ()int vips_cast_uchar ( Convert [method] vips_cast_char ()int vips_cast_char ( Convert [method] vips_cast_ushort ()int vips_cast_ushort ( Convert [method] vips_cast_short ()int vips_cast_short ( Convert [method] vips_cast_uint ()int vips_cast_uint ( Convert [method] vips_cast_int ()int vips_cast_int ( Convert [method] vips_cast_float ()int vips_cast_float ( Convert [method] vips_cast_double ()int vips_cast_double ( Convert [method] vips_cast_complex ()int vips_cast_complex ( Convert [method] vips_cast_dpcomplex ()int vips_cast_dpcomplex ( Convert [method] vips_scale ()int vips_scale ( Optional arguments:
Search the image for the maximum and minimum value, then return the image as unsigned 8-bit, scaled so that the maximum value is 255 and the minimum is zero. If See also: [method] vips_msb ()int vips_msb ( Optional arguments:
Turn any integer image to 8-bit unsigned char by discarding all but the most significant byte. Signed values are converted to unsigned by adding 128. Use This operator also works for LABQ coding. See also: [method] vips_byteswap ()int vips_byteswap ( Swap the byte order in an image. See also: [method] vips_bandjoin ()int vips_bandjoin ( Join a set of images together, bandwise. If the images have n and m bands, then the output image will have n + m bands, with the first n coming from the first image and the last m from the second. If the images differ in size, the smaller images are enlarged to match the larger by adding zero pixels along the bottom and right. The input images are cast up to the smallest common type (see table Smallest common format in arithmetic).See also: vips_bandjoin2 ()int vips_bandjoin2 ( Join a pair of images together, bandwise. See vips_bandjoin_const ()int vips_bandjoin_const ( Append a set of constant bands to an image. See also: [method] vips_bandjoin_const1 ()int vips_bandjoin_const1 ( Append a single constant band to an image. [method] vips_bandrank ()int vips_bandrank ( Optional arguments:
Sorts the images By default, It works for any uncoded, non-complex image type. Images are cast up to the smallest common-format. Any image can have either 1 band or n bands, where n is the same for all the non-1-band images. Single band images are then effectively copied to make n-band images. Smaller input images are expanded by adding black pixels. See also: vips_bandfold ()int vips_bandfold ( Optional arguments:
Fold up an image horizontally: width is collapsed into bands.
Use See also: [method] vips_bandunfold ()int vips_bandunfold ( Optional arguments:
Unfold image bands into x axis.
Use See also: [method] vips_bandbool ()int vips_bandbool ( Perform various boolean operations across the bands of an image. For example, a three-band uchar image operated on with VIPS_OPERATION_BOOLEAN_AND will produce a one-band uchar image where each pixel is the bitwise and of the band elements of the corresponding pixel in the input image. The output image is the same format as the input image for integer types. Float types are cast to int before processing. Complex types are not supported. The output image always has one band. This operation is useful in conjuction with See also: [method] vips_bandand ()int vips_bandand ( Perform VIPS_OPERATION_BOOLEAN_AND on an image. See
[method] vips_bandor ()int vips_bandor ( Perform VIPS_OPERATION_BOOLEAN_OR on an image. See
[method] vips_bandeor ()int vips_bandeor ( Perform VIPS_OPERATION_BOOLEAN_EOR on an image. See
[method] vips_bandmean ()int vips_bandmean ( This operation writes a one-band image where each pixel is the average of the bands for that pixel in the input image. The output band format is the same as the input band format. Integer types use round-to-nearest averaging. See also: [method] vips_recomb ()int vips_recomb ( This operation recombines an image's bands. Each pixel in
It's useful for various sorts of colour space conversions. See also: [method] vips_ifthenelse ()int vips_ifthenelse ( Optional arguments:
This operation scans the condition image Any image can have either 1 band or n bands, where n is the same for all the non-1-band images. Single band images are then effectively copied to make n-band images. Images If the images differ in size, the smaller images are enlarged to match the largest by adding zero pixels along the bottom and right. If See also: vips_switch ()int vips_switch ( The Images in Combine with See also: [method] vips_flatten ()int vips_flatten ( Optional arguments:
Take the last band of The alpha channel is 0 -
Useful for flattening PNG images to RGB. See also: [method] vips_addalpha ()int vips_addalpha ( Append an alpha channel. See also: [method] vips_premultiply ()int vips_premultiply ( Optional arguments:
Premultiplies any alpha channel. The final band is taken to be the alpha and the bands are transformed as:
So for an N-band image, the first N - 1 bands are multiplied by the clipped and normalised final band, the final band is clipped. If there is only a single band, the image is passed through unaltered. The result is VIPS_FORMAT_FLOAT unless the input format is VIPS_FORMAT_DOUBLE, in which case the output is double as well.
Non-complex images only. See also: [method] vips_unpremultiply ()int vips_unpremultiply ( Optional arguments:
Unpremultiplies any alpha channel.
Band
So for an N-band image, the first N - 1 bands are divided by the clipped and normalised final band, the final band is clipped. If there is only a single band, the image is passed through unaltered. The result is VIPS_FORMAT_FLOAT unless the input format is VIPS_FORMAT_DOUBLE, in which case the output is double as well.
Non-complex images only. See also: [method] vips_composite ()int vips_composite ( Optional arguments:
Composite an array of images together. Images are placed in a stack, with Images are transformed to a compositing space before processing. This is VIPS_INTERPRETATION_sRGB, VIPS_INTERPRETATION_B_W, VIPS_INTERPRETATION_RGB16, or VIPS_INTERPRETATION_GREY16 by default, depending on how many bands and bits the input images have. You can select any other space, such as VIPS_INTERPRETATION_LAB or VIPS_INTERPRETATION_scRGB. The output image is in the compositing space. It will always be VIPS_FORMAT_FLOAT unless one of the inputs is VIPS_FORMAT_DOUBLE, in which case the output will be double as well. Complex images are not supported. The output image will always have an alpha band. A solid alpha is added to any input missing an alpha. The images do not need to match in size or format. They will be expanded to
the smallest common size and format in the usual way. Images are positioned
using the Image are normally treated as unpremultiplied, so this operation can be used
directly on PNG images. If your images have been through See also: [method] Parameters
vips_composite2 ()int vips_composite2 ( Optional arguments:
Composite [method] vips_falsecolour ()int vips_falsecolour ( Force See also: [method] vips_gamma ()int vips_gamma ( Optional arguments:
Calculate See also: [method] Types and Valuesenum VipsExtendSee When the edges of an image are extended, you can specify how you want the extension done. VIPS_EXTEND_BLACK --- new pixels are black, ie. all bits are zero. VIPS_EXTEND_COPY --- each new pixel takes the value of the nearest edge pixel VIPS_EXTEND_REPEAT --- the image is tiled to fill the new area VIPS_EXTEND_MIRROR --- the image is reflected and tiled to reduce hash edges VIPS_EXTEND_WHITE --- new pixels are white, ie. all bits are set VIPS_EXTEND_BACKGROUND --- colour set from the We have to specify the exact value of each enum member since we have to keep these frozen for back compat with vips7. See also: enum VipsCompassDirectionA direction on a compass. Used for enum VipsDirectionSee Operations like See also: enum VipsAlignSee Operations like See also: enum VipsAngle45See Fixed rotate angles. See also: enum VipsInterestingPick the algorithm vips uses to decide image "interestingness". This is used
by VIPS_INTERESTING_NONE and VIPS_INTERESTING_LOW mean the same -- the crop is positioned at the top or left. VIPS_INTERESTING_HIGH positions at the bottom or right. See also: enum VipsBlendModeThe various Porter-Duff and PDF blend modes. See The Cairo docs have a nice explanation of all the blend modes: https://www.cairographics.org/operators The non-separable modes are not implemented. Members
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.1567 ]-- |