Skip to main content

VipsImage

Struct VipsImage 

Source
pub struct VipsImage { /* private fields */ }

Implementations§

Source§

impl VipsImage

This is the main type of vips. It represents an image and most operations will take one as input and output a new one. In the moment this type is not thread safe. Be careful working within thread environments.

Source

pub fn new() -> VipsImage

Source

pub fn new_memory() -> Result<VipsImage>

Creates a new VipsImage which, when written to, will create a memory image.

Source

pub fn new_from_file<P: AsRef<Path>>(filename: P) -> Result<VipsImage>

Opens the named file for reading.

Source

pub fn new_from_file_with_opts<P: AsRef<Path>>( filename: P, option: VOption<'_>, ) -> Result<VipsImage>

Opens the named file for reading.

Source

pub fn new_from_file_rw<P: AsRef<Path>>(filename: P) -> Result<VipsImage>

Opens the named file for simultaneous reading and writing.

Source

pub fn new_from_file_raw<P: AsRef<Path>>( filename: P, x_size: i32, y_size: i32, bands: i32, offset: u64, ) -> Result<VipsImage>

Maps the named file and returns a VipsImage you can use to read it.

Source

pub fn new_from_buffer(buffer: &[u8], option_str: &str) -> Result<VipsImage>

Loads an image from the formatted area of memory.

Source

pub fn new_from_buffer_with_opts( buffer: &[u8], option_str: &str, option: VOption<'_>, ) -> Result<VipsImage>

Loads an image from the formatted area of memory.

Source

pub fn new_from_source( source: &VipsSource, option_str: &str, ) -> Result<VipsImage>

Loads an image from the formatted source.

Source

pub fn new_from_source_with_opts( source: &VipsSource, option_str: &str, option: VOption<'_>, ) -> Result<VipsImage>

Loads an image from the formatted source.

Source

pub unsafe fn new_from_memory( buffer: &[u8], width: i32, height: i32, bands: i32, format: BandFormat, ) -> Result<VipsImage>

Wraps a VipsImage around a memory area.

§Safety

Because VIPS is “borrowing” data from the caller, this function is extremely dangerous. Unless you are very careful, you will get crashes or memory corruption. Use new_from_memory_copy() instead if you are at all unsure.

Source

pub fn new_from_memory_copy( buffer: &[u8], width: i32, height: i32, bands: i32, format: BandFormat, ) -> Result<VipsImage>

Like new_from_memory(), but VIPS will make a copy of the memory area.

Source

pub fn new_matrix(width: i32, height: i32) -> Result<VipsImage>

Makes an image which is a matrix: a one-band VIPS_FORMAT_DOUBLE image held in memory.

Source

pub fn new_matrixv(width: i32, height: i32, array: &[f64]) -> Result<VipsImage>

As new_matrix(), but initialise the matrix from the argument list. Same as new_matrix_from_array().

Source

pub fn new_matrix_from_array( width: i32, height: i32, array: &[f64], ) -> Result<VipsImage>

As new_matrix(), but initialise the matrix from the argument list. Same as new_matrixv().

Source

pub fn new_from_image(image: &VipsImage, array: &[f64]) -> Result<VipsImage>

Creates a new image with width, height, format, interpretation, resolution and offset taken from image, but with number of bands taken from array and the value of each band element set from the number of elements in the array.

Source

pub fn new_from_image1(image: &VipsImage, c: f64) -> Result<VipsImage>

Creates a new image with width, height, format, interpretation, resolution and offset taken from image, but with one band and each pixel having the value c.

Source

pub fn new_temp_file(format: &str) -> Result<VipsImage>

Makes a VipsImage which, when written to, will create a temporary file on disc. The file will be automatically deleted when the image is destroyed.

Source

pub fn as_mut_ptr(&self) -> *mut VipsImage

Returns the underlying VipsImage reference that this holds

Source

pub fn copy_memory(&self) -> Result<VipsImage>

Allocates memory, renders image into it, builds a new image around the memory area, and returns that.

Source

pub fn invalidate_all(&self)

Invalidates all pixel caches on image and any downstream images, that is, images which depend on this image.

Source

pub fn minimise_all(&self)

Minimises memory use on this image and any upstream images, that is, images which this image depends upon.

Source

pub fn inplace(&mut self) -> Result<()>

Gets image ready for an in-place operation

Source

pub fn get_filename(&self) -> Result<&str, Utf8Error>

Source

pub fn get_width(&self) -> i32

Source

pub fn get_height(&self) -> i32

Source

pub fn get_xoffset(&self) -> i32

Source

pub fn get_yoffset(&self) -> i32

Source

pub fn get_scale(&self) -> f64

Source

pub fn get_offset(&self) -> f64

Source

pub fn get_xres(&self) -> f64

Source

pub fn get_yres(&self) -> f64

Source

pub fn get_bands(&self) -> i32

Source

pub fn get_page_height(&self) -> i32

Source

pub fn get_n_pages(&self) -> i32

Source

pub fn get_coding(&self) -> Result<Coding>

Source

pub fn get_format(&self) -> Result<BandFormat>

Source

pub fn guess_format(&self) -> Result<BandFormat>

Source

pub fn get_orientation(&self) -> i32

Source

pub fn get_interpretation(&self) -> Result<Interpretation>

Source

pub fn guess_interpretation(&self) -> Result<Interpretation>

Source

pub fn iskilled(&self) -> bool

Source

pub fn isMSBfirst(&self) -> bool

Source

pub fn isfile(&self) -> bool

Source

pub fn ispartial(&self) -> bool

Source

pub fn hasalpha(&self) -> bool

Source

pub fn set_kill(&self, flag: bool)

Sets the VipsImage.kill flag on an image.

Source

pub fn set_progress(&self, flag: bool)

Enables progress reporting on an image.

Source

pub fn write(&self, other: &VipsImage) -> Result<()>

Writes this image to another image.

Source

pub fn write_to_file<P: AsRef<Path>>(&self, filename: P) -> Result<()>

Writes this image to a file on disc.

Source

pub fn write_to_file_with_opts<P: AsRef<Path>>( &self, filename: P, option: VOption<'_>, ) -> Result<()>

Writes this image to a file on disc.

Source

pub fn write_to_buffer(&self, suffix: &str) -> Result<Vec<u8>>

Writes this image to memory.

Source

pub fn write_to_buffer_with_opts( &self, suffix: &str, option: VOption<'_>, ) -> Result<Vec<u8>>

Writes this image to memory.

Source

pub fn write_to_target(&self, suffix: &str, target: &VipsTarget) -> Result<()>

Writes this image to a target.

Source

pub fn write_to_target_with_opts( &self, suffix: &str, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

Writes this image to a target.

Source

pub fn write_to_memory(&self) -> Vec<u8>

Writes this image to a large memory array.

Source

pub fn decode_predict(&self) -> Result<(i32, BandFormat)>

Source

pub fn decode(&self) -> Result<VipsImage>

Source

pub fn encode(&self, coding: Coding) -> Result<VipsImage>

Source

pub fn get_typeof(&self, type_: impl AsRef<[u8]>) -> Result<u64>

Reads the GType for a header field.

Source

pub fn get_int(&self, name: impl AsRef<[u8]>) -> Result<i32>

Gets int from image under the name.

Source

pub fn set_int(&mut self, name: impl AsRef<[u8]>, value: i32) -> Result<()>

Attaches int as a metadata item on image as name.

Source

pub fn get_double(&self, name: impl AsRef<[u8]>) -> Result<f64>

Gets double from image under the name.

Source

pub fn set_double(&mut self, name: impl AsRef<[u8]>, value: f64) -> Result<()>

Attaches double as a metadata item on image as name.

Source

pub fn get_string(&self, name: impl AsRef<[u8]>) -> Result<String>

Gets string from image under the name.

Source

pub fn set_string(&mut self, name: impl AsRef<[u8]>, value: &str) -> Result<()>

Attaches string as a metadata item on image as name.

Source

pub fn get_blob(&self, name: impl AsRef<[u8]>) -> Result<Vec<u8>>

Gets data from image under the name.

Source

pub fn set_blob(&mut self, name: impl AsRef<[u8]>, blob: &[u8]) -> Result<()>

Attaches data as a metadata item on image under the name.

Source

pub fn get_array_int(&self, name: impl AsRef<[u8]>) -> Result<Vec<i32>>

Gets an array of int from image under the name.

Source

pub fn set_array_int( &mut self, name: impl AsRef<[u8]>, value: &[i32], ) -> Result<()>

Attaches array as a metadata item on image as name.

Source

pub fn get_array_double(&self, name: impl AsRef<[u8]>) -> Result<Vec<f64>>

Gets an array of double from image under the name.

Source

pub fn set_array_double( &mut self, name: impl AsRef<[u8]>, value: &[f64], ) -> Result<()>

Attaches array as a metadata item on image as name.

Source

pub fn set_image( &mut self, name: impl AsRef<[u8]>, value: &VipsImage, ) -> Result<()>

Attaches image as a metadata item on image as name.

Source

pub fn remove(&mut self, name: impl AsRef<[u8]>) -> Result<bool>

Finds and removes an item of metadata.

Source

pub fn minpos(&self) -> Result<(f64, f64)>

Returns the coordinates of the image minimum.

Source

pub fn maxpos(&self) -> Result<(f64, f64)>

Returns the coordinates of the image maximum.

Source§

impl VipsImage

Source

pub fn CMC2LCh(&self) -> Result<VipsImage>

VipsCMC2LCh (CMC2LCh), transform LCh to CMC returns VipsImage - Output image

Source

pub fn CMYK2XYZ(&self) -> Result<VipsImage>

VipsCMYK2XYZ (CMYK2XYZ), transform CMYK to XYZ returns VipsImage - Output image

Source

pub fn HSV2sRGB(&self) -> Result<VipsImage>

VipsHSV2sRGB (HSV2sRGB), transform HSV to sRGB returns VipsImage - Output image

Source

pub fn LCh2CMC(&self) -> Result<VipsImage>

VipsLCh2CMC (LCh2CMC), transform LCh to CMC returns VipsImage - Output image

Source

pub fn LCh2Lab(&self) -> Result<VipsImage>

VipsLCh2Lab (LCh2Lab), transform LCh to Lab returns VipsImage - Output image

Source

pub fn Lab2LCh(&self) -> Result<VipsImage>

VipsLab2LCh (Lab2LCh), transform Lab to LCh returns VipsImage - Output image

Source

pub fn Lab2LabQ(&self) -> Result<VipsImage>

VipsLab2LabQ (Lab2LabQ), transform float Lab to LabQ coding returns VipsImage - Output image

Source

pub fn Lab2LabS(&self) -> Result<VipsImage>

VipsLab2LabS (Lab2LabS), transform float Lab to signed short returns VipsImage - Output image

Source

pub fn Lab2XYZ(&self) -> Result<VipsImage>

VipsLab2XYZ (Lab2XYZ), transform CIELAB to XYZ returns VipsImage - Output image

Source

pub fn Lab2XYZ_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsLab2XYZ (Lab2XYZ), transform CIELAB to XYZ returns VipsImage - Output image

Optional arguments

temp: &[f64] -> Color temperature

Source

pub fn LabQ2Lab(&self) -> Result<VipsImage>

VipsLabQ2Lab (LabQ2Lab), unpack a LabQ image to float Lab returns VipsImage - Output image

Source

pub fn LabQ2LabS(&self) -> Result<VipsImage>

VipsLabQ2LabS (LabQ2LabS), unpack a LabQ image to short Lab returns VipsImage - Output image

Source

pub fn LabQ2sRGB(&self) -> Result<VipsImage>

VipsLabQ2sRGB (LabQ2sRGB), convert a LabQ image to sRGB returns VipsImage - Output image

Source

pub fn LabS2Lab(&self) -> Result<VipsImage>

VipsLabS2Lab (LabS2Lab), transform signed short Lab to float returns VipsImage - Output image

Source

pub fn LabS2LabQ(&self) -> Result<VipsImage>

VipsLabS2LabQ (LabS2LabQ), transform short Lab to LabQ coding returns VipsImage - Output image

Source

pub fn XYZ2CMYK(&self) -> Result<VipsImage>

VipsXYZ2CMYK (XYZ2CMYK), transform XYZ to CMYK returns VipsImage - Output image

Source

pub fn XYZ2Lab(&self) -> Result<VipsImage>

VipsXYZ2Lab (XYZ2Lab), transform XYZ to Lab returns VipsImage - Output image

Source

pub fn XYZ2Lab_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsXYZ2Lab (XYZ2Lab), transform XYZ to Lab returns VipsImage - Output image

Optional arguments

temp: &[f64] -> Colour temperature

Source

pub fn XYZ2Yxy(&self) -> Result<VipsImage>

VipsXYZ2Yxy (XYZ2Yxy), transform XYZ to Yxy returns VipsImage - Output image

Source

pub fn XYZ2scRGB(&self) -> Result<VipsImage>

VipsXYZ2scRGB (XYZ2scRGB), transform XYZ to scRGB returns VipsImage - Output image

Source

pub fn Yxy2XYZ(&self) -> Result<VipsImage>

VipsYxy2XYZ (Yxy2XYZ), transform Yxy to XYZ returns VipsImage - Output image

Source

pub fn abs(&self) -> Result<VipsImage>

VipsAbs (abs), absolute value of an image returns VipsImage - Output image

Source

pub fn add(&self, right: &VipsImage) -> Result<VipsImage>

VipsAdd (add), add two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn addalpha(&self) -> Result<VipsImage>

VipsAddAlpha (addalpha), append an alpha channel returns VipsImage - Output image

Source

pub fn affine(&self, matrix: &[f64]) -> Result<VipsImage>

VipsAffine (affine), affine transform of an image returns VipsImage - Output image

matrix: &[f64] -> Transformation matrix

Source

pub fn affine_with_opts( &self, matrix: &[f64], option: VOption<'_>, ) -> Result<VipsImage>

VipsAffine (affine), affine transform of an image returns VipsImage - Output image

matrix: &[f64] -> Transformation matrix

Optional arguments

interpolate: &VipsInterpolate -> Interpolate pixels with this

oarea: &[i32] -> Area of output to generate

odx: f64 -> Horizontal output displacement

ody: f64 -> Vertical output displacement

idx: f64 -> Horizontal input displacement

idy: f64 -> Vertical input displacement

background: &[f64] -> Background value

premultiplied: bool -> Images have premultiplied alpha

extend: Extend -> How to generate the extra pixels

Source

pub fn analyzeload(filename: &str) -> Result<VipsImage>

VipsForeignLoadAnalyze (analyzeload), load an Analyze6 image (.img, .hdr), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn analyzeload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadAnalyze (analyzeload), load an Analyze6 image (.img, .hdr), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn arrayjoin(inp: &[VipsImage]) -> Result<VipsImage>

VipsArrayjoin (arrayjoin), join an array of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Source

pub fn arrayjoin_with_opts( inp: &[VipsImage], option: VOption<'_>, ) -> Result<VipsImage>

VipsArrayjoin (arrayjoin), join an array of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Optional arguments

across: i32 -> Number of images across grid

shim: i32 -> Pixels between images

background: &[f64] -> Colour for new pixels

halign: Align -> Align on the left, centre or right

valign: Align -> Align on the top, centre or bottom

hspacing: i32 -> Horizontal spacing between images

vspacing: i32 -> Vertical spacing between images

Source

pub fn autorot(&self) -> Result<VipsImage>

VipsAutorot (autorot), autorotate image by exif tag returns VipsImage - Output image

Source

pub fn autorot_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsAutorot (autorot), autorotate image by exif tag returns VipsImage - Output image

Optional arguments

angle: Angle -> Angle image was rotated by

flip: &mut bool -> Whether the image was flipped or not

Source

pub fn avg(&self) -> Result<f64>

VipsAvg (avg), find image average returns f64 - Output value

Source

pub fn bandbool(&self, boolean: OperationBoolean) -> Result<VipsImage>

VipsBandbool (bandbool), boolean operation across image bands returns VipsImage - Output image

boolean: OperationBoolean -> Boolean to perform

Source

pub fn bandfold(&self) -> Result<VipsImage>

VipsBandfold (bandfold), fold up x axis into bands returns VipsImage - Output image

Source

pub fn bandfold_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsBandfold (bandfold), fold up x axis into bands returns VipsImage - Output image

Optional arguments

factor: i32 -> Fold by this factor

Source

pub fn bandjoin(inp: &[VipsImage]) -> Result<VipsImage>

VipsBandjoin (bandjoin), bandwise join a set of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Source

pub fn bandjoin_const(&self, c: &[f64]) -> Result<VipsImage>

VipsBandjoinConst (bandjoin_const), append a constant band to an image returns VipsImage - Output image

c: &[f64] -> Array of constants to add

Source

pub fn bandmean(&self) -> Result<VipsImage>

VipsBandmean (bandmean), band-wise average returns VipsImage - Output image

Source

pub fn bandrank(inp: &[VipsImage]) -> Result<VipsImage>

VipsBandrank (bandrank), band-wise rank of a set of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Source

pub fn bandrank_with_opts( inp: &[VipsImage], option: VOption<'_>, ) -> Result<VipsImage>

VipsBandrank (bandrank), band-wise rank of a set of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Optional arguments

index: i32 -> Select this band element from sorted list

Source

pub fn bandunfold(&self) -> Result<VipsImage>

VipsBandunfold (bandunfold), unfold image bands into x axis returns VipsImage - Output image

Source

pub fn bandunfold_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsBandunfold (bandunfold), unfold image bands into x axis returns VipsImage - Output image

Optional arguments

factor: i32 -> Unfold by this factor

Source

pub fn black(width: i32, height: i32) -> Result<VipsImage>

VipsBlack (black), make a black image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn black_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsBlack (black), make a black image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

bands: i32 -> Number of bands in image

Source

pub fn boolean( &self, right: &VipsImage, boolean: OperationBoolean, ) -> Result<VipsImage>

VipsBoolean (boolean), boolean operation on two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

boolean: OperationBoolean -> Boolean to perform

Source

pub fn boolean_const( &self, boolean: OperationBoolean, c: &[f64], ) -> Result<VipsImage>

VipsBooleanConst (boolean_const), boolean operations against a constant returns VipsImage - Output image

boolean: OperationBoolean -> Boolean to perform

c: &[f64] -> Array of constants

Source

pub fn buildlut(&self) -> Result<VipsImage>

VipsBuildlut (buildlut), build a look-up table returns VipsImage - Output image

Source

pub fn byteswap(&self) -> Result<VipsImage>

VipsByteswap (byteswap), byteswap an image returns VipsImage - Output image

Source

pub fn canny(&self) -> Result<VipsImage>

VipsCanny (canny), Canny edge detector returns VipsImage - Output image

Source

pub fn canny_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsCanny (canny), Canny edge detector returns VipsImage - Output image

Optional arguments

sigma: f64 -> Sigma of Gaussian

precision: Precision -> Convolve with this precision

Source

pub fn case(&self, cases: &[VipsImage]) -> Result<VipsImage>

VipsCase (case), use pixel values to pick cases from an array of images returns VipsImage - Output image

cases: &[VipsImage] -> Array of case images

Source

pub fn cast(&self, format: BandFormat) -> Result<VipsImage>

VipsCast (cast), cast an image returns VipsImage - Output image

format: BandFormat -> Format to cast to

Source

pub fn cast_with_opts( &self, format: BandFormat, option: VOption<'_>, ) -> Result<VipsImage>

VipsCast (cast), cast an image returns VipsImage - Output image

format: BandFormat -> Format to cast to

Optional arguments

shift: bool -> Shift integer values up and down

Source

pub fn clamp(&self) -> Result<VipsImage>

VipsClamp (clamp), clamp values of an image returns VipsImage - Output image

Source

pub fn clamp_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsClamp (clamp), clamp values of an image returns VipsImage - Output image

Optional arguments

min: f64 -> Minimum value

max: f64 -> Maximum value

Source

pub fn colourspace(&self, space: Interpretation) -> Result<VipsImage>

VipsColourspace (colourspace), convert to a new colorspace returns VipsImage - Output image

space: Interpretation -> Destination color space

Source

pub fn colourspace_with_opts( &self, space: Interpretation, option: VOption<'_>, ) -> Result<VipsImage>

VipsColourspace (colourspace), convert to a new colorspace returns VipsImage - Output image

space: Interpretation -> Destination color space

Optional arguments

source_space: Interpretation -> Source color space

Source

pub fn compass(&self, mask: &VipsImage) -> Result<VipsImage>

VipsCompass (compass), convolve with rotating mask returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn compass_with_opts( &self, mask: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsCompass (compass), convolve with rotating mask returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Optional arguments

times: i32 -> Rotate and convolve this many times

angle: Angle45 -> Rotate mask by this much between convolutions

combine: Combine -> Combine convolution results like this

precision: Precision -> Convolve with this precision

layers: i32 -> Use this many layers in approximation

cluster: i32 -> Cluster lines closer than this in approximation

Source

pub fn complex2( &self, right: &VipsImage, cmplx: OperationComplex2, ) -> Result<VipsImage>

VipsComplex2 (complex2), complex binary operations on two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

cmplx: OperationComplex2 -> Binary complex operation to perform

Source

pub fn complex(&self, cmplx: OperationComplex) -> Result<VipsImage>

VipsComplex (complex), perform a complex operation on an image returns VipsImage - Output image

cmplx: OperationComplex -> Complex to perform

Source

pub fn complexform(&self, right: &VipsImage) -> Result<VipsImage>

VipsComplexform (complexform), form a complex image from two real images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn complexget(&self, get: OperationComplexget) -> Result<VipsImage>

VipsComplexget (complexget), get a component from a complex image returns VipsImage - Output image

get: OperationComplexget -> Complex to perform

Source

pub fn composite2( &self, overlay: &VipsImage, mode: BlendMode, ) -> Result<VipsImage>

VipsComposite2 (composite2), blend a pair of images with a blend mode returns VipsImage - Output image

overlay: &VipsImage -> Overlay image

mode: BlendMode -> VipsBlendMode to join with

Source

pub fn composite2_with_opts( &self, overlay: &VipsImage, mode: BlendMode, option: VOption<'_>, ) -> Result<VipsImage>

VipsComposite2 (composite2), blend a pair of images with a blend mode returns VipsImage - Output image

overlay: &VipsImage -> Overlay image

mode: BlendMode -> VipsBlendMode to join with

Optional arguments

x: i32 -> x position of overlay

y: i32 -> y position of overlay

compositing_space: Interpretation -> Composite images in this colour space

premultiplied: bool -> Images have premultiplied alpha

Source

pub fn composite(inp: &[VipsImage], mode: &[i32]) -> Result<VipsImage>

VipsComposite (composite), blend an array of images with an array of blend modes returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

mode: &[i32] -> Array of VipsBlendMode to join with

Source

pub fn composite_with_opts( inp: &[VipsImage], mode: &[i32], option: VOption<'_>, ) -> Result<VipsImage>

VipsComposite (composite), blend an array of images with an array of blend modes returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

mode: &[i32] -> Array of VipsBlendMode to join with

Optional arguments

x: &[i32] -> Array of x coordinates to join at

y: &[i32] -> Array of y coordinates to join at

compositing_space: Interpretation -> Composite images in this colour space

premultiplied: bool -> Images have premultiplied alpha

Source

pub fn conv(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConv (conv), convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn conv_with_opts( &self, mask: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsConv (conv), convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Optional arguments

precision: Precision -> Convolve with this precision

layers: i32 -> Use this many layers in approximation

cluster: i32 -> Cluster lines closer than this in approximation

Source

pub fn conva(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConva (conva), approximate integer convolution returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn conva_with_opts( &self, mask: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsConva (conva), approximate integer convolution returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Optional arguments

layers: i32 -> Use this many layers in approximation

cluster: i32 -> Cluster lines closer than this in approximation

Source

pub fn convasep(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConvasep (convasep), approximate separable integer convolution returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn convasep_with_opts( &self, mask: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsConvasep (convasep), approximate separable integer convolution returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Optional arguments

layers: i32 -> Use this many layers in approximation

Source

pub fn convf(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConvf (convf), float convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn convi(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConvi (convi), int convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn convsep(&self, mask: &VipsImage) -> Result<VipsImage>

VipsConvsep (convsep), separable convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Source

pub fn convsep_with_opts( &self, mask: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsConvsep (convsep), separable convolution operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

Optional arguments

precision: Precision -> Convolve with this precision

layers: i32 -> Use this many layers in approximation

cluster: i32 -> Cluster lines closer than this in approximation

Source

pub fn copy(&self) -> Result<VipsImage>

VipsCopy (copy), copy an image returns VipsImage - Output image

Source

pub fn copy_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsCopy (copy), copy an image returns VipsImage - Output image

Optional arguments

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

bands: i32 -> Number of bands in image

format: BandFormat -> Pixel format in image

coding: Coding -> Pixel coding

interpretation: Interpretation -> Pixel interpretation

xres: f64 -> Horizontal resolution in pixels/mm

yres: f64 -> Vertical resolution in pixels/mm

xoffset: i32 -> Horizontal offset of origin

yoffset: i32 -> Vertical offset of origin

Source

pub fn countlines(&self, direction: Direction) -> Result<f64>

VipsCountlines (countlines), count lines in an image returns f64 - Number of lines

direction: Direction -> Countlines left-right or up-down

Source

pub fn csvload(filename: &str) -> Result<VipsImage>

VipsForeignLoadCsvFile (csvload), load csv (.csv), priority=0, untrusted, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn csvload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadCsvFile (csvload), load csv (.csv), priority=0, untrusted, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

skip: i32 -> Skip this many lines at the start of the file

lines: i32 -> Read this many lines from the file

whitespace: &str -> Set of whitespace characters

separator: &str -> Set of separator characters

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn csvload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadCsvSource (csvload_source), load csv, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn csvload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadCsvSource (csvload_source), load csv, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

skip: i32 -> Skip this many lines at the start of the file

lines: i32 -> Read this many lines from the file

whitespace: &str -> Set of whitespace characters

separator: &str -> Set of separator characters

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn csvsave(&self, filename: &str) -> Result<()>

VipsForeignSaveCsvFile (csvsave), save image to csv (.csv), priority=0, mono

filename: &str -> Filename to save to

Source

pub fn csvsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveCsvFile (csvsave), save image to csv (.csv), priority=0, mono

filename: &str -> Filename to save to

Optional arguments

separator: &str -> Separator characters

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn csvsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveCsvTarget (csvsave_target), save image to csv (.csv), priority=0, mono

target: &VipsTarget -> Target to save to

Source

pub fn csvsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveCsvTarget (csvsave_target), save image to csv (.csv), priority=0, mono

target: &VipsTarget -> Target to save to

Optional arguments

separator: &str -> Separator characters

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn dE00(&self, right: &VipsImage) -> Result<VipsImage>

VipsdE00 (dE00), calculate dE00 returns VipsImage - Output image

right: &VipsImage -> Right-hand input image

Source

pub fn dE76(&self, right: &VipsImage) -> Result<VipsImage>

VipsdE76 (dE76), calculate dE76 returns VipsImage - Output image

right: &VipsImage -> Right-hand input image

Source

pub fn dECMC(&self, right: &VipsImage) -> Result<VipsImage>

VipsdECMC (dECMC), calculate dECMC returns VipsImage - Output image

right: &VipsImage -> Right-hand input image

Source

pub fn deviate(&self) -> Result<f64>

VipsDeviate (deviate), find image standard deviation returns f64 - Output value

Source

pub fn divide(&self, right: &VipsImage) -> Result<VipsImage>

VipsDivide (divide), divide two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn draw_circle( &self, ink: &[f64], cx: i32, cy: i32, radius: i32, ) -> Result<()>

VipsDrawCircle (draw_circle), draw a circle on an image

ink: &[f64] -> Color for pixels

cx: i32 -> Centre of draw_circle

cy: i32 -> Centre of draw_circle

radius: i32 -> Radius in pixels

Source

pub fn draw_circle_with_opts( &self, ink: &[f64], cx: i32, cy: i32, radius: i32, option: VOption<'_>, ) -> Result<()>

VipsDrawCircle (draw_circle), draw a circle on an image

ink: &[f64] -> Color for pixels

cx: i32 -> Centre of draw_circle

cy: i32 -> Centre of draw_circle

radius: i32 -> Radius in pixels

Optional arguments

fill: bool -> Draw a solid object

Source

pub fn draw_flood(&self, ink: &[f64], x: i32, y: i32) -> Result<()>

VipsDrawFlood (draw_flood), flood-fill an area

ink: &[f64] -> Color for pixels

x: i32 -> DrawFlood start point

y: i32 -> DrawFlood start point

Source

pub fn draw_flood_with_opts( &self, ink: &[f64], x: i32, y: i32, option: VOption<'_>, ) -> Result<()>

VipsDrawFlood (draw_flood), flood-fill an area

ink: &[f64] -> Color for pixels

x: i32 -> DrawFlood start point

y: i32 -> DrawFlood start point

Optional arguments

test: `` -> Test pixels in this image

equal: bool -> DrawFlood while equal to edge

left: &mut i32 -> Left edge of modified area

top: &mut i32 -> Top edge of modified area

width: &mut i32 -> Width of modified area

height: &mut i32 -> Height of modified area

Source

pub fn draw_image(&self, sub: &VipsImage, x: i32, y: i32) -> Result<()>

VipsDrawImage (draw_image), paint an image into another image

sub: &VipsImage -> Sub-image to insert into main image

x: i32 -> Draw image here

y: i32 -> Draw image here

Source

pub fn draw_image_with_opts( &self, sub: &VipsImage, x: i32, y: i32, option: VOption<'_>, ) -> Result<()>

VipsDrawImage (draw_image), paint an image into another image

sub: &VipsImage -> Sub-image to insert into main image

x: i32 -> Draw image here

y: i32 -> Draw image here

Optional arguments

mode: CombineMode -> Combining mode

Source

pub fn draw_line( &self, ink: &[f64], x1: i32, y1: i32, x2: i32, y2: i32, ) -> Result<()>

VipsDrawLine (draw_line), draw a line on an image

ink: &[f64] -> Color for pixels

x1: i32 -> Start of draw_line

y1: i32 -> Start of draw_line

x2: i32 -> End of draw_line

y2: i32 -> End of draw_line

Source

pub fn draw_mask( &self, ink: &[f64], mask: &VipsImage, x: i32, y: i32, ) -> Result<()>

VipsDrawMask (draw_mask), draw a mask on an image

ink: &[f64] -> Color for pixels

mask: &VipsImage -> Mask of pixels to draw

x: i32 -> Draw mask here

y: i32 -> Draw mask here

Source

pub fn draw_rect( &self, ink: &[f64], left: i32, top: i32, width: i32, height: i32, ) -> Result<()>

VipsDrawRect (draw_rect), paint a rectangle on an image

ink: &[f64] -> Color for pixels

left: i32 -> Rect to fill

top: i32 -> Rect to fill

width: i32 -> Rect to fill

height: i32 -> Rect to fill

Source

pub fn draw_rect_with_opts( &self, ink: &[f64], left: i32, top: i32, width: i32, height: i32, option: VOption<'_>, ) -> Result<()>

VipsDrawRect (draw_rect), paint a rectangle on an image

ink: &[f64] -> Color for pixels

left: i32 -> Rect to fill

top: i32 -> Rect to fill

width: i32 -> Rect to fill

height: i32 -> Rect to fill

Optional arguments

fill: bool -> Draw a solid object

Source

pub fn draw_smudge( &self, left: i32, top: i32, width: i32, height: i32, ) -> Result<()>

VipsDrawSmudge (draw_smudge), blur a rectangle on an image

left: i32 -> Rect to fill

top: i32 -> Rect to fill

width: i32 -> Rect to fill

height: i32 -> Rect to fill

Source

pub fn dzsave(&self, filename: &str) -> Result<()>

VipsForeignSaveDzFile (dzsave), save image to deepzoom file (.dz, .szi), priority=0,

filename: &str -> Filename to save to

Source

pub fn dzsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveDzFile (dzsave), save image to deepzoom file (.dz, .szi), priority=0,

filename: &str -> Filename to save to

Optional arguments

imagename: &str -> Image name

layout: ForeignDzLayout -> Directory layout

suffix: &str -> Filename suffix for tiles

overlap: i32 -> Tile overlap in pixels

tile_size: i32 -> Tile size in pixels

centre: bool -> Center image in tile

depth: ForeignDzDepth -> Pyramid depth

angle: Angle -> Rotate image during save

container: ForeignDzContainer -> Pyramid container type

compression: i32 -> ZIP deflate compression level

region_shrink: RegionShrink -> Method to shrink regions

skip_blanks: i32 -> Skip tiles which are nearly equal to the background

id: &str -> Resource ID

Q: i32 -> Q factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn dzsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveDzBuffer (dzsave_buffer), save image to dz buffer (.dz, .szi), priority=0, returns Vec<u8> - Buffer to save to

Source

pub fn dzsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveDzBuffer (dzsave_buffer), save image to dz buffer (.dz, .szi), priority=0, returns Vec<u8> - Buffer to save to

Optional arguments

imagename: &str -> Image name

layout: ForeignDzLayout -> Directory layout

suffix: &str -> Filename suffix for tiles

overlap: i32 -> Tile overlap in pixels

tile_size: i32 -> Tile size in pixels

centre: bool -> Center image in tile

depth: ForeignDzDepth -> Pyramid depth

angle: Angle -> Rotate image during save

container: ForeignDzContainer -> Pyramid container type

compression: i32 -> ZIP deflate compression level

region_shrink: RegionShrink -> Method to shrink regions

skip_blanks: i32 -> Skip tiles which are nearly equal to the background

id: &str -> Resource ID

Q: i32 -> Q factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn dzsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveDzTarget (dzsave_target), save image to deepzoom target (.dz, .szi), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn dzsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveDzTarget (dzsave_target), save image to deepzoom target (.dz, .szi), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

imagename: &str -> Image name

layout: ForeignDzLayout -> Directory layout

suffix: &str -> Filename suffix for tiles

overlap: i32 -> Tile overlap in pixels

tile_size: i32 -> Tile size in pixels

centre: bool -> Center image in tile

depth: ForeignDzDepth -> Pyramid depth

angle: Angle -> Rotate image during save

container: ForeignDzContainer -> Pyramid container type

compression: i32 -> ZIP deflate compression level

region_shrink: RegionShrink -> Method to shrink regions

skip_blanks: i32 -> Skip tiles which are nearly equal to the background

id: &str -> Resource ID

Q: i32 -> Q factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn embed( &self, x: i32, y: i32, width: i32, height: i32, ) -> Result<VipsImage>

VipsEmbed (embed), embed an image in a larger image returns VipsImage - Output image

x: i32 -> Left edge of input in output

y: i32 -> Top edge of input in output

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn embed_with_opts( &self, x: i32, y: i32, width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsEmbed (embed), embed an image in a larger image returns VipsImage - Output image

x: i32 -> Left edge of input in output

y: i32 -> Top edge of input in output

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

extend: Extend -> How to generate the extra pixels

background: &[f64] -> Color for background pixels

Source

pub fn extract_area( &self, left: i32, top: i32, width: i32, height: i32, ) -> Result<VipsImage>

VipsExtractArea (extract_area), extract an area from an image returns VipsImage - Output image

left: i32 -> Left edge of extract area

top: i32 -> Top edge of extract area

width: i32 -> Width of extract area

height: i32 -> Height of extract area

Source

pub fn crop( &self, left: i32, top: i32, width: i32, height: i32, ) -> Result<VipsImage>

crop (extract_area), extract an area from an image returns VipsImage - Output image

left: i32 -> Left edge of extract area

top: i32 -> Top edge of extract area

width: i32 -> Width of extract area

height: i32 -> Height of extract area

Source

pub fn extract_band(&self, band: i32) -> Result<VipsImage>

VipsExtractBand (extract_band), extract band from an image returns VipsImage - Output image

band: i32 -> Band to extract

Source

pub fn extract_band_with_opts( &self, band: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsExtractBand (extract_band), extract band from an image returns VipsImage - Output image

band: i32 -> Band to extract

Optional arguments

n: i32 -> Number of bands to extract

Source

pub fn eye(width: i32, height: i32) -> Result<VipsImage>

VipsEye (eye), make an image showing the eye’s spatial response returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn eye_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsEye (eye), make an image showing the eye’s spatial response returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

uchar: bool -> Output an unsigned char image

factor: f64 -> Maximum spatial frequency

Source

pub fn falsecolour(&self) -> Result<VipsImage>

VipsFalsecolour (falsecolour), false-color an image returns VipsImage - Output image

Source

pub fn fastcor(&self, refp: &VipsImage) -> Result<VipsImage>

VipsFastcor (fastcor), fast correlation returns VipsImage - Output image

refp: &VipsImage -> Input reference image

Source

pub fn fill_nearest(&self) -> Result<VipsImage>

VipsFillNearest (fill_nearest), fill image zeros with nearest non-zero pixel returns VipsImage - Value of nearest non-zero pixel

Source

pub fn fill_nearest_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsFillNearest (fill_nearest), fill image zeros with nearest non-zero pixel returns VipsImage - Value of nearest non-zero pixel

Optional arguments

distance: &mut VipsImage -> Distance to nearest non-zero pixel

Source

pub fn find_trim(&self) -> Result<(i32, i32, i32, i32)>

VipsFindTrim (find_trim), search an image for non-edge areas Tuple ( i32 - Left edge of image i32 - Top edge of extract area i32 - Width of extract area i32 - Height of extract area )

Source

pub fn find_trim_with_opts( &self, option: VOption<'_>, ) -> Result<(i32, i32, i32, i32)>

VipsFindTrim (find_trim), search an image for non-edge areas Tuple ( i32 - Left edge of image i32 - Top edge of extract area i32 - Width of extract area i32 - Height of extract area )

Optional arguments

threshold: f64 -> Object threshold

background: &[f64] -> Color for background pixels

line_art: bool -> Enable line art mode

Source

pub fn fitsload(filename: &str) -> Result<VipsImage>

VipsForeignLoadFitsFile (fitsload), load a FITS image (.fits, .fit, .fts), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn fitsload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadFitsFile (fitsload), load a FITS image (.fits, .fit, .fts), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn fitsload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadFitsSource (fitsload_source), load FITS from a source, priority=-50, untrusted, is_a, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn fitsload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadFitsSource (fitsload_source), load FITS from a source, priority=-50, untrusted, is_a, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn fitssave(&self, filename: &str) -> Result<()>

VipsForeignSaveFits (fitssave), save image to fits file (.fits, .fit, .fts), priority=0, untrusted,

filename: &str -> Filename to save to

Source

pub fn fitssave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveFits (fitssave), save image to fits file (.fits, .fit, .fts), priority=0, untrusted,

filename: &str -> Filename to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn flatten(&self) -> Result<VipsImage>

VipsFlatten (flatten), flatten alpha out of an image returns VipsImage - Output image

Source

pub fn flatten_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsFlatten (flatten), flatten alpha out of an image returns VipsImage - Output image

Optional arguments

background: &[f64] -> Background value

max_alpha: f64 -> Maximum value of alpha channel

Source

pub fn flip(&self, direction: Direction) -> Result<VipsImage>

VipsFlip (flip), flip an image returns VipsImage - Output image

direction: Direction -> Direction to flip image

Source

pub fn float2rad(&self) -> Result<VipsImage>

VipsFloat2rad (float2rad), transform float RGB to Radiance coding returns VipsImage - Output image

Source

pub fn fractsurf( width: i32, height: i32, fractal_dimension: f64, ) -> Result<VipsImage>

VipsFractsurf (fractsurf), make a fractal surface returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

fractal_dimension: f64 -> Fractal dimension

Source

pub fn freqmult(&self, mask: &VipsImage) -> Result<VipsImage>

VipsFreqmult (freqmult), frequency-domain filtering returns VipsImage - Output image

mask: &VipsImage -> Input mask image

Source

pub fn fwfft(&self) -> Result<VipsImage>

VipsFwfft (fwfft), forward FFT returns VipsImage - Output image

Source

pub fn gamma(&self) -> Result<VipsImage>

VipsGamma (gamma), gamma an image returns VipsImage - Output image

Source

pub fn gamma_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsGamma (gamma), gamma an image returns VipsImage - Output image

Optional arguments

exponent: f64 -> Gamma factor

Source

pub fn gaussblur(&self, sigma: f64) -> Result<VipsImage>

VipsGaussblur (gaussblur), gaussian blur returns VipsImage - Output image

sigma: f64 -> Sigma of Gaussian

Source

pub fn gaussblur_with_opts( &self, sigma: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsGaussblur (gaussblur), gaussian blur returns VipsImage - Output image

sigma: f64 -> Sigma of Gaussian

Optional arguments

min_ampl: f64 -> Minimum amplitude of Gaussian

precision: Precision -> Convolve with this precision

Source

pub fn gaussmat(sigma: f64, min_ampl: f64) -> Result<VipsImage>

VipsGaussmat (gaussmat), make a gaussian image returns VipsImage - Output image

sigma: f64 -> Sigma of Gaussian

min_ampl: f64 -> Minimum amplitude of Gaussian

Source

pub fn gaussmat_with_opts( sigma: f64, min_ampl: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsGaussmat (gaussmat), make a gaussian image returns VipsImage - Output image

sigma: f64 -> Sigma of Gaussian

min_ampl: f64 -> Minimum amplitude of Gaussian

Optional arguments

separable: bool -> Generate separable Gaussian

precision: Precision -> Generate with this precision

Source

pub fn gaussnoise(width: i32, height: i32) -> Result<VipsImage>

VipsGaussnoise (gaussnoise), make a gaussnoise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn gaussnoise_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsGaussnoise (gaussnoise), make a gaussnoise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

sigma: f64 -> Standard deviation of pixels in generated image

mean: f64 -> Mean of pixels in generated image

seed: i32 -> Random number seed

Source

pub fn getpoint(&self, x: i32, y: i32) -> Result<Vec<f64>>

VipsGetpoint (getpoint), read a point from an image returns Vec<f64> - Array of output values

x: i32 -> Point to read

y: i32 -> Point to read

Source

pub fn getpoint_with_opts( &self, x: i32, y: i32, option: VOption<'_>, ) -> Result<Vec<f64>>

VipsGetpoint (getpoint), read a point from an image returns Vec<f64> - Array of output values

x: i32 -> Point to read

y: i32 -> Point to read

Optional arguments

unpack_complex: bool -> Complex pixels should be unpacked

Source

pub fn gifload(filename: &str) -> Result<VipsImage>

VipsForeignLoadNsgifFile (gifload), load GIF with libnsgif (.gif), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn gifload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadNsgifFile (gifload), load GIF with libnsgif (.gif), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

n: i32 -> Number of pages to load, -1 for all

page: i32 -> First page to load

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn gifload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadNsgifBuffer (gifload_buffer), load GIF with libnsgif, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn gifload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadNsgifBuffer (gifload_buffer), load GIF with libnsgif, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

n: i32 -> Number of pages to load, -1 for all

page: i32 -> First page to load

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn gifload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadNsgifSource (gifload_source), load gif from source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn gifload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadNsgifSource (gifload_source), load gif from source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

n: i32 -> Number of pages to load, -1 for all

page: i32 -> First page to load

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn gifsave(&self, filename: &str) -> Result<()>

VipsForeignSaveCgifFile (gifsave), save as gif (.gif), priority=0, rgb alpha

filename: &str -> Filename to save to

Source

pub fn gifsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveCgifFile (gifsave), save as gif (.gif), priority=0, rgb alpha

filename: &str -> Filename to save to

Optional arguments

dither: f64 -> Amount of dithering

effort: i32 -> Quantisation effort

bitdepth: i32 -> Number of bits per pixel

interframe_maxerror: f64 -> Maximum inter-frame error for transparency

reuse: bool -> Reuse palette from input

interpalette_maxerror: f64 -> Maximum inter-palette error for palette reusage

interlace: bool -> Generate an interlaced (progressive) GIF

keep_duplicate_frames: bool -> Keep duplicate frames in the output instead of combining them

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn gifsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveCgifBuffer (gifsave_buffer), save as gif (.gif), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Source

pub fn gifsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveCgifBuffer (gifsave_buffer), save as gif (.gif), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Optional arguments

dither: f64 -> Amount of dithering

effort: i32 -> Quantisation effort

bitdepth: i32 -> Number of bits per pixel

interframe_maxerror: f64 -> Maximum inter-frame error for transparency

reuse: bool -> Reuse palette from input

interpalette_maxerror: f64 -> Maximum inter-palette error for palette reusage

interlace: bool -> Generate an interlaced (progressive) GIF

keep_duplicate_frames: bool -> Keep duplicate frames in the output instead of combining them

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn gifsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveCgifTarget (gifsave_target), save as gif (.gif), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Source

pub fn gifsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveCgifTarget (gifsave_target), save as gif (.gif), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Optional arguments

dither: f64 -> Amount of dithering

effort: i32 -> Quantisation effort

bitdepth: i32 -> Number of bits per pixel

interframe_maxerror: f64 -> Maximum inter-frame error for transparency

reuse: bool -> Reuse palette from input

interpalette_maxerror: f64 -> Maximum inter-palette error for palette reusage

interlace: bool -> Generate an interlaced (progressive) GIF

keep_duplicate_frames: bool -> Keep duplicate frames in the output instead of combining them

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn globalbalance(&self) -> Result<VipsImage>

VipsGlobalbalance (globalbalance), global balance an image mosaic returns VipsImage - Output image

Source

pub fn globalbalance_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsGlobalbalance (globalbalance), global balance an image mosaic returns VipsImage - Output image

Optional arguments

gamma: f64 -> Image gamma

int_output: bool -> Integer output

Source

pub fn gravity( &self, direction: CompassDirection, width: i32, height: i32, ) -> Result<VipsImage>

VipsGravity (gravity), place an image within a larger image with a certain gravity returns VipsImage - Output image

direction: CompassDirection -> Direction to place image within width/height

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn gravity_with_opts( &self, direction: CompassDirection, width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsGravity (gravity), place an image within a larger image with a certain gravity returns VipsImage - Output image

direction: CompassDirection -> Direction to place image within width/height

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

extend: Extend -> How to generate the extra pixels

background: &[f64] -> Color for background pixels

Source

pub fn grey(width: i32, height: i32) -> Result<VipsImage>

VipsGrey (grey), make a grey ramp image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn grey_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsGrey (grey), make a grey ramp image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

uchar: bool -> Output an unsigned char image

Source

pub fn grid( &self, tile_height: i32, across: i32, down: i32, ) -> Result<VipsImage>

VipsGrid (grid), grid an image returns VipsImage - Output image

tile_height: i32 -> Chop into tiles this high

across: i32 -> Number of tiles across

down: i32 -> Number of tiles down

Source

pub fn heifload(filename: &str) -> Result<VipsImage>

VipsForeignLoadHeifFile (heifload), load a HEIF image (.heic, .heif, .avif), priority=0, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn heifload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadHeifFile (heifload), load a HEIF image (.heic, .heif, .avif), priority=0, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

thumbnail: bool -> Fetch thumbnail image

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn heifload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadHeifBuffer (heifload_buffer), load a HEIF image, priority=0, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn heifload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadHeifBuffer (heifload_buffer), load a HEIF image, priority=0, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

thumbnail: bool -> Fetch thumbnail image

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn heifload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadHeifSource (heifload_source), load a HEIF image, priority=0, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn heifload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadHeifSource (heifload_source), load a HEIF image, priority=0, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

thumbnail: bool -> Fetch thumbnail image

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn heifsave(&self, filename: &str) -> Result<()>

VipsForeignSaveHeifFile (heifsave), save image in HEIF format (.heic, .heif, .avif), priority=0, rgb alpha

filename: &str -> Filename to save to

Source

pub fn heifsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveHeifFile (heifsave), save image in HEIF format (.heic, .heif, .avif), priority=0, rgb alpha

filename: &str -> Filename to save to

Optional arguments

Q: i32 -> Q factor

bitdepth: i32 -> Number of bits per pixel

lossless: bool -> Enable lossless compression

compression: ForeignHeifCompression -> Compression format

effort: i32 -> CPU effort

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

encoder: ForeignHeifEncoder -> Select encoder to use

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn heifsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveHeifBuffer (heifsave_buffer), save image in HEIF format (.heic, .heif), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Source

pub fn heifsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveHeifBuffer (heifsave_buffer), save image in HEIF format (.heic, .heif), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Optional arguments

Q: i32 -> Q factor

bitdepth: i32 -> Number of bits per pixel

lossless: bool -> Enable lossless compression

compression: ForeignHeifCompression -> Compression format

effort: i32 -> CPU effort

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

encoder: ForeignHeifEncoder -> Select encoder to use

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn heifsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveHeifTarget (heifsave_target), save image in HEIF format (.heic, .heif), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Source

pub fn heifsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveHeifTarget (heifsave_target), save image in HEIF format (.heic, .heif), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Optional arguments

Q: i32 -> Q factor

bitdepth: i32 -> Number of bits per pixel

lossless: bool -> Enable lossless compression

compression: ForeignHeifCompression -> Compression format

effort: i32 -> CPU effort

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

encoder: ForeignHeifEncoder -> Select encoder to use

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn hist_cum(&self) -> Result<VipsImage>

VipsHistCum (hist_cum), form cumulative histogram returns VipsImage - Output image

Source

pub fn hist_entropy(&self) -> Result<f64>

VipsHistEntropy (hist_entropy), estimate image entropy returns f64 - Output value

Source

pub fn hist_equal(&self) -> Result<VipsImage>

VipsHistEqual (hist_equal), histogram equalisation returns VipsImage - Output image

Source

pub fn hist_equal_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsHistEqual (hist_equal), histogram equalisation returns VipsImage - Output image

Optional arguments

band: i32 -> Equalise with this band

Source

pub fn hist_find(&self) -> Result<VipsImage>

VipsHistFind (hist_find), find image histogram returns VipsImage - Output histogram

Source

pub fn hist_find_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsHistFind (hist_find), find image histogram returns VipsImage - Output histogram

Optional arguments

band: i32 -> Find histogram of band

Source

pub fn hist_find_indexed(&self, index: &VipsImage) -> Result<VipsImage>

VipsHistFindIndexed (hist_find_indexed), find indexed image histogram returns VipsImage - Output histogram

index: &VipsImage -> Index image

Source

pub fn hist_find_indexed_with_opts( &self, index: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsHistFindIndexed (hist_find_indexed), find indexed image histogram returns VipsImage - Output histogram

index: &VipsImage -> Index image

Optional arguments

combine: Combine -> Combine bins like this

Source

pub fn hist_find_ndim(&self) -> Result<VipsImage>

VipsHistFindNDim (hist_find_ndim), find n-dimensional image histogram returns VipsImage - Output histogram

Source

pub fn hist_find_ndim_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsHistFindNDim (hist_find_ndim), find n-dimensional image histogram returns VipsImage - Output histogram

Optional arguments

bins: i32 -> Number of bins in each dimension

Source

pub fn hist_ismonotonic(&self) -> Result<bool>

VipsHistIsmonotonic (hist_ismonotonic), test for monotonicity returns bool - true if in is monotonic

Source

pub fn hist_local(&self, width: i32, height: i32) -> Result<VipsImage>

VipsHistLocal (hist_local), local histogram equalisation returns VipsImage - Output image

width: i32 -> Window width in pixels

height: i32 -> Window height in pixels

Source

pub fn hist_local_with_opts( &self, width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsHistLocal (hist_local), local histogram equalisation returns VipsImage - Output image

width: i32 -> Window width in pixels

height: i32 -> Window height in pixels

Optional arguments

max_slope: i32 -> Maximum slope (CLAHE)

Source

pub fn hist_match(&self, refp: &VipsImage) -> Result<VipsImage>

VipsHistMatch (hist_match), match two histograms returns VipsImage - Output image

refp: &VipsImage -> Reference histogram

Source

pub fn hist_norm(&self) -> Result<VipsImage>

VipsHistNorm (hist_norm), normalise histogram returns VipsImage - Output image

Source

pub fn hist_plot(&self) -> Result<VipsImage>

VipsHistPlot (hist_plot), plot histogram returns VipsImage - Output image

Source

pub fn hough_circle(&self) -> Result<VipsImage>

VipsHoughCircle (hough_circle), find hough circle transform returns VipsImage - Output image

Source

pub fn hough_circle_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsHoughCircle (hough_circle), find hough circle transform returns VipsImage - Output image

Optional arguments

scale: i32 -> Scale down dimensions by this factor

min_radius: i32 -> Smallest radius to search for

max_radius: i32 -> Largest radius to search for

Source

pub fn hough_line(&self) -> Result<VipsImage>

VipsHoughLine (hough_line), find hough line transform returns VipsImage - Output image

Source

pub fn hough_line_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsHoughLine (hough_line), find hough line transform returns VipsImage - Output image

Optional arguments

width: i32 -> Horizontal size of parameter space

height: i32 -> Vertical size of parameter space

Source

pub fn icc_export(&self) -> Result<VipsImage>

VipsIccExport (icc_export), output to device with ICC profile returns VipsImage - Output image

Source

pub fn icc_export_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsIccExport (icc_export), output to device with ICC profile returns VipsImage - Output image

Optional arguments

pcs: PCS -> Set Profile Connection Space

intent: Intent -> Rendering intent

black_point_compensation: bool -> Enable black point compensation

output_profile: &str -> Filename to load output profile from

depth: i32 -> Output device space depth in bits

Source

pub fn icc_import(&self) -> Result<VipsImage>

VipsIccImport (icc_import), import from device with ICC profile returns VipsImage - Output image

Source

pub fn icc_import_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsIccImport (icc_import), import from device with ICC profile returns VipsImage - Output image

Optional arguments

pcs: PCS -> Set Profile Connection Space

intent: Intent -> Rendering intent

black_point_compensation: bool -> Enable black point compensation

embedded: bool -> Use embedded input profile, if available

input_profile: &str -> Filename to load input profile from

Source

pub fn icc_transform(&self, output_profile: &str) -> Result<VipsImage>

VipsIccTransform (icc_transform), transform between devices with ICC profiles returns VipsImage - Output image

output_profile: &str -> Filename to load output profile from

Source

pub fn icc_transform_with_opts( &self, output_profile: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsIccTransform (icc_transform), transform between devices with ICC profiles returns VipsImage - Output image

output_profile: &str -> Filename to load output profile from

Optional arguments

pcs: PCS -> Set Profile Connection Space

intent: Intent -> Rendering intent

black_point_compensation: bool -> Enable black point compensation

embedded: bool -> Use embedded input profile, if available

input_profile: &str -> Filename to load input profile from

depth: i32 -> Output device space depth in bits

Source

pub fn identity() -> Result<VipsImage>

VipsIdentity (identity), make a 1D image where pixel values are indexes returns VipsImage - Output image

Source

pub fn identity_with_opts(option: VOption<'_>) -> Result<VipsImage>

VipsIdentity (identity), make a 1D image where pixel values are indexes returns VipsImage - Output image

Optional arguments

bands: i32 -> Number of bands in LUT

ushort: bool -> Create a 16-bit LUT

size: i32 -> Size of 16-bit LUT

Source

pub fn ifthenelse(&self, in1: &VipsImage, in2: &VipsImage) -> Result<VipsImage>

VipsIfthenelse (ifthenelse), ifthenelse an image returns VipsImage - Output image

in1: &VipsImage -> Source for TRUE pixels

in2: &VipsImage -> Source for FALSE pixels

Source

pub fn ifthenelse_with_opts( &self, in1: &VipsImage, in2: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsIfthenelse (ifthenelse), ifthenelse an image returns VipsImage - Output image

in1: &VipsImage -> Source for TRUE pixels

in2: &VipsImage -> Source for FALSE pixels

Optional arguments

blend: bool -> Blend smoothly between then and else parts

Source

pub fn insert(&self, sub: &VipsImage, x: i32, y: i32) -> Result<VipsImage>

VipsInsert (insert), insert image @sub into @main at @x, @y returns VipsImage - Output image

sub: &VipsImage -> Sub-image to insert into main image

x: i32 -> Left edge of sub in main

y: i32 -> Top edge of sub in main

Source

pub fn insert_with_opts( &self, sub: &VipsImage, x: i32, y: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsInsert (insert), insert image @sub into @main at @x, @y returns VipsImage - Output image

sub: &VipsImage -> Sub-image to insert into main image

x: i32 -> Left edge of sub in main

y: i32 -> Top edge of sub in main

Optional arguments

expand: bool -> Expand output to hold all of both inputs

background: &[f64] -> Color for new pixels

Source

pub fn invert(&self) -> Result<VipsImage>

VipsInvert (invert), invert an image returns VipsImage - Output image

Source

pub fn invertlut(&self) -> Result<VipsImage>

VipsInvertlut (invertlut), build an inverted look-up table returns VipsImage - Output image

Source

pub fn invertlut_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsInvertlut (invertlut), build an inverted look-up table returns VipsImage - Output image

Optional arguments

size: i32 -> LUT size to generate

Source

pub fn invfft(&self) -> Result<VipsImage>

VipsInvfft (invfft), inverse FFT returns VipsImage - Output image

Source

pub fn invfft_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsInvfft (invfft), inverse FFT returns VipsImage - Output image

Optional arguments

real: bool -> Output only the real part of the transform

Source

pub fn join(&self, in2: &VipsImage, direction: Direction) -> Result<VipsImage>

VipsJoin (join), join a pair of images returns VipsImage - Output image

in2: &VipsImage -> Second input image

direction: Direction -> Join left-right or up-down

Source

pub fn join_with_opts( &self, in2: &VipsImage, direction: Direction, option: VOption<'_>, ) -> Result<VipsImage>

VipsJoin (join), join a pair of images returns VipsImage - Output image

in2: &VipsImage -> Second input image

direction: Direction -> Join left-right or up-down

Optional arguments

expand: bool -> Expand output to hold all of both inputs

shim: i32 -> Pixels between images

background: &[f64] -> Colour for new pixels

align: Align -> Align on the low, centre or high coordinate edge

Source

pub fn jp2kload(filename: &str) -> Result<VipsImage>

VipsForeignLoadJp2kFile (jp2kload), load JPEG2000 image (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn jp2kload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJp2kFile (jp2kload), load JPEG2000 image (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> Load this page from the image

oneshot: bool -> Load images a frame at a time

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jp2kload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadJp2kBuffer (jp2kload_buffer), load JPEG2000 image, priority=0, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn jp2kload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJp2kBuffer (jp2kload_buffer), load JPEG2000 image, priority=0, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> Load this page from the image

oneshot: bool -> Load images a frame at a time

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jp2kload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadJp2kSource (jp2kload_source), load JPEG2000 image, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn jp2kload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJp2kSource (jp2kload_source), load JPEG2000 image, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> Load this page from the image

oneshot: bool -> Load images a frame at a time

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jp2ksave(&self, filename: &str) -> Result<()>

VipsForeignSaveJp2kFile (jp2ksave), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0,

filename: &str -> Filename to save to

Source

pub fn jp2ksave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJp2kFile (jp2ksave), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0,

filename: &str -> Filename to save to

Optional arguments

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

lossless: bool -> Enable lossless compression

Q: i32 -> Q factor

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jp2ksave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveJp2kBuffer (jp2ksave_buffer), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0, returns Vec<u8> - Buffer to save to

Source

pub fn jp2ksave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveJp2kBuffer (jp2ksave_buffer), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0, returns Vec<u8> - Buffer to save to

Optional arguments

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

lossless: bool -> Enable lossless compression

Q: i32 -> Q factor

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jp2ksave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveJp2kTarget (jp2ksave_target), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn jp2ksave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJp2kTarget (jp2ksave_target), save image in JPEG2000 format (.j2k, .jp2, .jpt, .j2c, .jpc), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

lossless: bool -> Enable lossless compression

Q: i32 -> Q factor

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jpegload(filename: &str) -> Result<VipsImage>

VipsForeignLoadJpegFile (jpegload), load jpeg from file (.jpg, .jpeg, .jpe, .jfif), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn jpegload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJpegFile (jpegload), load jpeg from file (.jpg, .jpeg, .jpe, .jfif), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

shrink: i32 -> Shrink factor on load

autorotate: bool -> Rotate image using exif orientation

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jpegload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadJpegBuffer (jpegload_buffer), load jpeg from buffer, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn jpegload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJpegBuffer (jpegload_buffer), load jpeg from buffer, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

shrink: i32 -> Shrink factor on load

autorotate: bool -> Rotate image using exif orientation

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jpegload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadJpegSource (jpegload_source), load image from jpeg source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn jpegload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJpegSource (jpegload_source), load image from jpeg source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

shrink: i32 -> Shrink factor on load

autorotate: bool -> Rotate image using exif orientation

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jpegsave(&self, filename: &str) -> Result<()>

VipsForeignSaveJpegFile (jpegsave), save image to jpeg file (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

filename: &str -> Filename to save to

Source

pub fn jpegsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJpegFile (jpegsave), save image to jpeg file (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

filename: &str -> Filename to save to

Optional arguments

Q: i32 -> Q factor

optimize_coding: bool -> Compute optimal Huffman coding tables

interlace: bool -> Generate an interlaced (progressive) jpeg

trellis_quant: bool -> Apply trellis quantisation to each 8x8 block

overshoot_deringing: bool -> Apply overshooting to samples with extreme values

optimize_scans: bool -> Split spectrum of DCT coefficients into separate scans

quant_table: i32 -> Use predefined quantization table with given index

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

restart_interval: i32 -> Add restart markers every specified number of mcu

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jpegsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveJpegBuffer (jpegsave_buffer), save image to jpeg buffer (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk returns Vec<u8> - Buffer to save to

Source

pub fn jpegsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveJpegBuffer (jpegsave_buffer), save image to jpeg buffer (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk returns Vec<u8> - Buffer to save to

Optional arguments

Q: i32 -> Q factor

optimize_coding: bool -> Compute optimal Huffman coding tables

interlace: bool -> Generate an interlaced (progressive) jpeg

trellis_quant: bool -> Apply trellis quantisation to each 8x8 block

overshoot_deringing: bool -> Apply overshooting to samples with extreme values

optimize_scans: bool -> Split spectrum of DCT coefficients into separate scans

quant_table: i32 -> Use predefined quantization table with given index

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

restart_interval: i32 -> Add restart markers every specified number of mcu

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jpegsave_mime(&self) -> Result<()>

VipsForeignSaveJpegMime (jpegsave_mime), save image to jpeg mime (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

Source

pub fn jpegsave_mime_with_opts(&self, option: VOption<'_>) -> Result<()>

VipsForeignSaveJpegMime (jpegsave_mime), save image to jpeg mime (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

Optional arguments

Q: i32 -> Q factor

optimize_coding: bool -> Compute optimal Huffman coding tables

interlace: bool -> Generate an interlaced (progressive) jpeg

trellis_quant: bool -> Apply trellis quantisation to each 8x8 block

overshoot_deringing: bool -> Apply overshooting to samples with extreme values

optimize_scans: bool -> Split spectrum of DCT coefficients into separate scans

quant_table: i32 -> Use predefined quantization table with given index

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

restart_interval: i32 -> Add restart markers every specified number of mcu

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jpegsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveJpegTarget (jpegsave_target), save image to jpeg target (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

target: &VipsTarget -> Target to save to

Source

pub fn jpegsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJpegTarget (jpegsave_target), save image to jpeg target (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk

target: &VipsTarget -> Target to save to

Optional arguments

Q: i32 -> Q factor

optimize_coding: bool -> Compute optimal Huffman coding tables

interlace: bool -> Generate an interlaced (progressive) jpeg

trellis_quant: bool -> Apply trellis quantisation to each 8x8 block

overshoot_deringing: bool -> Apply overshooting to samples with extreme values

optimize_scans: bool -> Split spectrum of DCT coefficients into separate scans

quant_table: i32 -> Use predefined quantization table with given index

subsample_mode: ForeignSubsample -> Select chroma subsample operation mode

restart_interval: i32 -> Add restart markers every specified number of mcu

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jxlload(filename: &str) -> Result<VipsImage>

VipsForeignLoadJxlFile (jxlload), load JPEG-XL image (.jxl), priority=0, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn jxlload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJxlFile (jxlload), load JPEG-XL image (.jxl), priority=0, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jxlload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadJxlBuffer (jxlload_buffer), load JPEG-XL image, priority=0, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn jxlload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJxlBuffer (jxlload_buffer), load JPEG-XL image, priority=0, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jxlload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadJxlSource (jxlload_source), load JPEG-XL image, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn jxlload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadJxlSource (jxlload_source), load JPEG-XL image, priority=0, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn jxlsave(&self, filename: &str) -> Result<()>

VipsForeignSaveJxlFile (jxlsave), save image in JPEG-XL format (.jxl), priority=0, untrusted,

filename: &str -> Filename to save to

Source

pub fn jxlsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJxlFile (jxlsave), save image in JPEG-XL format (.jxl), priority=0, untrusted,

filename: &str -> Filename to save to

Optional arguments

tier: i32 -> Decode speed tier

distance: f64 -> Target butteraugli distance

effort: i32 -> Encoding effort

lossless: bool -> Enable lossless compression

Q: i32 -> Quality factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jxlsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveJxlBuffer (jxlsave_buffer), save image in JPEG-XL format (.jxl), priority=0, untrusted, returns Vec<u8> - Buffer to save to

Source

pub fn jxlsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveJxlBuffer (jxlsave_buffer), save image in JPEG-XL format (.jxl), priority=0, untrusted, returns Vec<u8> - Buffer to save to

Optional arguments

tier: i32 -> Decode speed tier

distance: f64 -> Target butteraugli distance

effort: i32 -> Encoding effort

lossless: bool -> Enable lossless compression

Q: i32 -> Quality factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn jxlsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveJxlTarget (jxlsave_target), save image in JPEG-XL format (.jxl), priority=0, untrusted,

target: &VipsTarget -> Target to save to

Source

pub fn jxlsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveJxlTarget (jxlsave_target), save image in JPEG-XL format (.jxl), priority=0, untrusted,

target: &VipsTarget -> Target to save to

Optional arguments

tier: i32 -> Decode speed tier

distance: f64 -> Target butteraugli distance

effort: i32 -> Encoding effort

lossless: bool -> Enable lossless compression

Q: i32 -> Quality factor

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn labelregions(&self) -> Result<VipsImage>

VipsLabelregions (labelregions), label regions in an image returns VipsImage - Mask of region labels

Source

pub fn labelregions_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsLabelregions (labelregions), label regions in an image returns VipsImage - Mask of region labels

Optional arguments

segments: &mut i32 -> Number of discrete contiguous regions

Source

pub fn linear(&self, a: &[f64], b: &[f64]) -> Result<VipsImage>

VipsLinear (linear), calculate (a * in + b) returns VipsImage - Output image

a: &[f64] -> Multiply by this

b: &[f64] -> Add this

Source

pub fn linear_with_opts( &self, a: &[f64], b: &[f64], option: VOption<'_>, ) -> Result<VipsImage>

VipsLinear (linear), calculate (a * in + b) returns VipsImage - Output image

a: &[f64] -> Multiply by this

b: &[f64] -> Add this

Optional arguments

uchar: bool -> Output should be uchar

Source

pub fn linecache(&self) -> Result<VipsImage>

VipsLineCache (linecache), cache an image as a set of lines returns VipsImage - Output image

Source

pub fn linecache_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsLineCache (linecache), cache an image as a set of lines returns VipsImage - Output image

Optional arguments

tile_height: i32 -> Tile height in pixels

access: Access -> Expected access pattern

threaded: bool -> Allow threaded access

persistent: bool -> Keep cache between evaluations

Source

pub fn logmat(sigma: f64, min_ampl: f64) -> Result<VipsImage>

VipsLogmat (logmat), make a Laplacian of Gaussian image returns VipsImage - Output image

sigma: f64 -> Radius of Gaussian

min_ampl: f64 -> Minimum amplitude of Gaussian

Source

pub fn logmat_with_opts( sigma: f64, min_ampl: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsLogmat (logmat), make a Laplacian of Gaussian image returns VipsImage - Output image

sigma: f64 -> Radius of Gaussian

min_ampl: f64 -> Minimum amplitude of Gaussian

Optional arguments

separable: bool -> Generate separable Gaussian

precision: Precision -> Generate with this precision

Source

pub fn mapim(&self, index: &VipsImage) -> Result<VipsImage>

VipsMapim (mapim), resample with a map image returns VipsImage - Output image

index: &VipsImage -> Index pixels with this

Source

pub fn mapim_with_opts( &self, index: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsMapim (mapim), resample with a map image returns VipsImage - Output image

index: &VipsImage -> Index pixels with this

Optional arguments

interpolate: &VipsInterpolate -> Interpolate pixels with this

background: &[f64] -> Background value

premultiplied: bool -> Images have premultiplied alpha

extend: Extend -> How to generate the extra pixels

Source

pub fn maplut(&self, lut: &VipsImage) -> Result<VipsImage>

VipsMaplut (maplut), map an image though a lut returns VipsImage - Output image

lut: &VipsImage -> Look-up table image

Source

pub fn maplut_with_opts( &self, lut: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaplut (maplut), map an image though a lut returns VipsImage - Output image

lut: &VipsImage -> Look-up table image

Optional arguments

band: i32 -> Apply one-band lut to this band of in

Source

pub fn mask_butterworth( width: i32, height: i32, order: f64, frequency_cutoff: f64, amplitude_cutoff: f64, ) -> Result<VipsImage>

VipsMaskButterworth (mask_butterworth), make a butterworth filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

Source

pub fn mask_butterworth_with_opts( width: i32, height: i32, order: f64, frequency_cutoff: f64, amplitude_cutoff: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskButterworth (mask_butterworth), make a butterworth filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_butterworth_band( width: i32, height: i32, order: f64, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, amplitude_cutoff: f64, ) -> Result<VipsImage>

VipsMaskButterworthBand (mask_butterworth_band), make a butterworth_band filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

amplitude_cutoff: f64 -> Amplitude cutoff

Source

pub fn mask_butterworth_band_with_opts( width: i32, height: i32, order: f64, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, amplitude_cutoff: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskButterworthBand (mask_butterworth_band), make a butterworth_band filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

amplitude_cutoff: f64 -> Amplitude cutoff

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_butterworth_ring( width: i32, height: i32, order: f64, frequency_cutoff: f64, amplitude_cutoff: f64, ringwidth: f64, ) -> Result<VipsImage>

VipsMaskButterworthRing (mask_butterworth_ring), make a butterworth ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

ringwidth: f64 -> Ringwidth

Source

pub fn mask_butterworth_ring_with_opts( width: i32, height: i32, order: f64, frequency_cutoff: f64, amplitude_cutoff: f64, ringwidth: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskButterworthRing (mask_butterworth_ring), make a butterworth ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

order: f64 -> Filter order

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

ringwidth: f64 -> Ringwidth

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_fractal( width: i32, height: i32, fractal_dimension: f64, ) -> Result<VipsImage>

VipsMaskFractal (mask_fractal), make fractal filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

fractal_dimension: f64 -> Fractal dimension

Source

pub fn mask_fractal_with_opts( width: i32, height: i32, fractal_dimension: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskFractal (mask_fractal), make fractal filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

fractal_dimension: f64 -> Fractal dimension

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_gaussian( width: i32, height: i32, frequency_cutoff: f64, amplitude_cutoff: f64, ) -> Result<VipsImage>

VipsMaskGaussian (mask_gaussian), make a gaussian filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

Source

pub fn mask_gaussian_with_opts( width: i32, height: i32, frequency_cutoff: f64, amplitude_cutoff: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskGaussian (mask_gaussian), make a gaussian filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_gaussian_band( width: i32, height: i32, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, amplitude_cutoff: f64, ) -> Result<VipsImage>

VipsMaskGaussianBand (mask_gaussian_band), make a gaussian filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

amplitude_cutoff: f64 -> Amplitude cutoff

Source

pub fn mask_gaussian_band_with_opts( width: i32, height: i32, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, amplitude_cutoff: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskGaussianBand (mask_gaussian_band), make a gaussian filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

amplitude_cutoff: f64 -> Amplitude cutoff

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_gaussian_ring( width: i32, height: i32, frequency_cutoff: f64, amplitude_cutoff: f64, ringwidth: f64, ) -> Result<VipsImage>

VipsMaskGaussianRing (mask_gaussian_ring), make a gaussian ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

ringwidth: f64 -> Ringwidth

Source

pub fn mask_gaussian_ring_with_opts( width: i32, height: i32, frequency_cutoff: f64, amplitude_cutoff: f64, ringwidth: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskGaussianRing (mask_gaussian_ring), make a gaussian ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

amplitude_cutoff: f64 -> Amplitude cutoff

ringwidth: f64 -> Ringwidth

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_ideal( width: i32, height: i32, frequency_cutoff: f64, ) -> Result<VipsImage>

VipsMaskIdeal (mask_ideal), make an ideal filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

Source

pub fn mask_ideal_with_opts( width: i32, height: i32, frequency_cutoff: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskIdeal (mask_ideal), make an ideal filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_ideal_band( width: i32, height: i32, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, ) -> Result<VipsImage>

VipsMaskIdealBand (mask_ideal_band), make an ideal band filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

Source

pub fn mask_ideal_band_with_opts( width: i32, height: i32, frequency_cutoff_x: f64, frequency_cutoff_y: f64, radius: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskIdealBand (mask_ideal_band), make an ideal band filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff_x: f64 -> Frequency cutoff x

frequency_cutoff_y: f64 -> Frequency cutoff y

radius: f64 -> Radius of circle

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn mask_ideal_ring( width: i32, height: i32, frequency_cutoff: f64, ringwidth: f64, ) -> Result<VipsImage>

VipsMaskIdealRing (mask_ideal_ring), make an ideal ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

ringwidth: f64 -> Ringwidth

Source

pub fn mask_ideal_ring_with_opts( width: i32, height: i32, frequency_cutoff: f64, ringwidth: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsMaskIdealRing (mask_ideal_ring), make an ideal ring filter returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

frequency_cutoff: f64 -> Frequency cutoff

ringwidth: f64 -> Ringwidth

Optional arguments

uchar: bool -> Output an unsigned char image

nodc: bool -> Remove DC component

reject: bool -> Invert the sense of the filter

optical: bool -> Rotate quadrants to optical space

Source

pub fn matches( &self, sec: &VipsImage, xr1: i32, yr1: i32, xs1: i32, ys1: i32, xr2: i32, yr2: i32, xs2: i32, ys2: i32, ) -> Result<VipsImage>

VipsMatch (match), first-order match of two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

xr1: i32 -> Position of first reference tie-point

yr1: i32 -> Position of first reference tie-point

xs1: i32 -> Position of first secondary tie-point

ys1: i32 -> Position of first secondary tie-point

xr2: i32 -> Position of second reference tie-point

yr2: i32 -> Position of second reference tie-point

xs2: i32 -> Position of second secondary tie-point

ys2: i32 -> Position of second secondary tie-point

Source

pub fn matches_with_opts( &self, sec: &VipsImage, xr1: i32, yr1: i32, xs1: i32, ys1: i32, xr2: i32, yr2: i32, xs2: i32, ys2: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsMatch (match), first-order match of two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

xr1: i32 -> Position of first reference tie-point

yr1: i32 -> Position of first reference tie-point

xs1: i32 -> Position of first secondary tie-point

ys1: i32 -> Position of first secondary tie-point

xr2: i32 -> Position of second reference tie-point

yr2: i32 -> Position of second reference tie-point

xs2: i32 -> Position of second secondary tie-point

ys2: i32 -> Position of second secondary tie-point

Optional arguments

hwindow: i32 -> Half window size

harea: i32 -> Half area size

search: bool -> Search to improve tie-points

interpolate: &VipsInterpolate -> Interpolate pixels with this

Source

pub fn math2( &self, right: &VipsImage, math2: OperationMath2, ) -> Result<VipsImage>

VipsMath2 (math2), binary math operations returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

math2: OperationMath2 -> Math to perform

Source

pub fn math2_const(&self, math2: OperationMath2, c: &[f64]) -> Result<VipsImage>

VipsMath2Const (math2_const), binary math operations with a constant returns VipsImage - Output image

math2: OperationMath2 -> Math to perform

c: &[f64] -> Array of constants

Source

pub fn math(&self, math: OperationMath) -> Result<VipsImage>

VipsMath (math), apply a math operation to an image returns VipsImage - Output image

math: OperationMath -> Math to perform

Source

pub fn matload(filename: &str) -> Result<VipsImage>

VipsForeignLoadMat (matload), load mat from file (.mat), priority=0, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn matload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadMat (matload), load mat from file (.mat), priority=0, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn matrixinvert(&self) -> Result<VipsImage>

VipsMatrixinvert (matrixinvert), invert a matrix returns VipsImage - Output matrix

Source

pub fn matrixload(filename: &str) -> Result<VipsImage>

VipsForeignLoadMatrixFile (matrixload), load matrix (.mat), priority=0, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn matrixload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadMatrixFile (matrixload), load matrix (.mat), priority=0, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn matrixload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadMatrixSource (matrixload_source), load matrix, priority=0, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn matrixload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadMatrixSource (matrixload_source), load matrix, priority=0, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn matrixmultiply(&self, right: &VipsImage) -> Result<VipsImage>

VipsMatrixmultiply (matrixmultiply), multiply two matrices returns VipsImage - Output matrix

right: &VipsImage -> Second matrix to multiply

Source

pub fn matrixprint(&self) -> Result<()>

VipsForeignPrintMatrix (matrixprint), print matrix (.mat), priority=0, mono

Source

pub fn matrixprint_with_opts(&self, option: VOption<'_>) -> Result<()>

VipsForeignPrintMatrix (matrixprint), print matrix (.mat), priority=0, mono

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn matrixsave(&self, filename: &str) -> Result<()>

VipsForeignSaveMatrixFile (matrixsave), save image to matrix (.mat), priority=0, mono

filename: &str -> Filename to save to

Source

pub fn matrixsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveMatrixFile (matrixsave), save image to matrix (.mat), priority=0, mono

filename: &str -> Filename to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn matrixsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveMatrixTarget (matrixsave_target), save image to matrix (.mat), priority=0, mono

target: &VipsTarget -> Target to save to

Source

pub fn matrixsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveMatrixTarget (matrixsave_target), save image to matrix (.mat), priority=0, mono

target: &VipsTarget -> Target to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn max(&self) -> Result<f64>

VipsMax (max), find image maximum returns f64 - Output value

Source

pub fn max_with_opts(&self, option: VOption<'_>) -> Result<f64>

VipsMax (max), find image maximum returns f64 - Output value

Optional arguments

x: &mut i32 -> Horizontal position of maximum

y: &mut i32 -> Vertical position of maximum

size: i32 -> Number of maximum values to find

out_array: &mut Vec<f64> -> Array of output values

x_array: &[i32] -> Array of horizontal positions

y_array: &[i32] -> Array of vertical positions

Source

pub fn maxpair(&self, right: &VipsImage) -> Result<VipsImage>

VipsMaxpair (maxpair), maximum of a pair of images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn measure(&self, h: i32, v: i32) -> Result<VipsImage>

VipsMeasure (measure), measure a set of patches on a color chart returns VipsImage - Output array of statistics

h: i32 -> Number of patches across chart

v: i32 -> Number of patches down chart

Source

pub fn measure_with_opts( &self, h: i32, v: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsMeasure (measure), measure a set of patches on a color chart returns VipsImage - Output array of statistics

h: i32 -> Number of patches across chart

v: i32 -> Number of patches down chart

Optional arguments

left: i32 -> Left edge of extract area

top: i32 -> Top edge of extract area

width: i32 -> Width of extract area

height: i32 -> Height of extract area

Source

pub fn merge( &self, sec: &VipsImage, direction: Direction, dx: i32, dy: i32, ) -> Result<VipsImage>

VipsMerge (merge), merge two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical merge

dx: i32 -> Horizontal displacement from sec to ref

dy: i32 -> Vertical displacement from sec to ref

Source

pub fn merge_with_opts( &self, sec: &VipsImage, direction: Direction, dx: i32, dy: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsMerge (merge), merge two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical merge

dx: i32 -> Horizontal displacement from sec to ref

dy: i32 -> Vertical displacement from sec to ref

Optional arguments

mblend: i32 -> Maximum blend size

Source

pub fn min(&self) -> Result<f64>

VipsMin (min), find image minimum returns f64 - Output value

Source

pub fn min_with_opts(&self, option: VOption<'_>) -> Result<f64>

VipsMin (min), find image minimum returns f64 - Output value

Optional arguments

x: &mut i32 -> Horizontal position of minimum

y: &mut i32 -> Vertical position of minimum

size: i32 -> Number of minimum values to find

out_array: &mut Vec<f64> -> Array of output values

x_array: &[i32] -> Array of horizontal positions

y_array: &[i32] -> Array of vertical positions

Source

pub fn minpair(&self, right: &VipsImage) -> Result<VipsImage>

VipsMinpair (minpair), minimum of a pair of images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn morph( &self, mask: &VipsImage, morph: OperationMorphology, ) -> Result<VipsImage>

VipsMorph (morph), morphology operation returns VipsImage - Output image

mask: &VipsImage -> Input matrix image

morph: OperationMorphology -> Morphological operation to perform

Source

pub fn mosaic1( &self, sec: &VipsImage, direction: Direction, xr1: i32, yr1: i32, xs1: i32, ys1: i32, xr2: i32, yr2: i32, xs2: i32, ys2: i32, ) -> Result<VipsImage>

VipsMosaic1 (mosaic1), first-order mosaic of two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical mosaic

xr1: i32 -> Position of first reference tie-point

yr1: i32 -> Position of first reference tie-point

xs1: i32 -> Position of first secondary tie-point

ys1: i32 -> Position of first secondary tie-point

xr2: i32 -> Position of second reference tie-point

yr2: i32 -> Position of second reference tie-point

xs2: i32 -> Position of second secondary tie-point

ys2: i32 -> Position of second secondary tie-point

Source

pub fn mosaic1_with_opts( &self, sec: &VipsImage, direction: Direction, xr1: i32, yr1: i32, xs1: i32, ys1: i32, xr2: i32, yr2: i32, xs2: i32, ys2: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsMosaic1 (mosaic1), first-order mosaic of two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical mosaic

xr1: i32 -> Position of first reference tie-point

yr1: i32 -> Position of first reference tie-point

xs1: i32 -> Position of first secondary tie-point

ys1: i32 -> Position of first secondary tie-point

xr2: i32 -> Position of second reference tie-point

yr2: i32 -> Position of second reference tie-point

xs2: i32 -> Position of second secondary tie-point

ys2: i32 -> Position of second secondary tie-point

Optional arguments

hwindow: i32 -> Half window size

harea: i32 -> Half area size

search: bool -> Search to improve tie-points

interpolate: &VipsInterpolate -> Interpolate pixels with this

mblend: i32 -> Maximum blend size

Source

pub fn mosaic( &self, sec: &VipsImage, direction: Direction, xref: i32, yref: i32, xsec: i32, ysec: i32, ) -> Result<VipsImage>

VipsMosaic (mosaic), mosaic two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical mosaic

xref: i32 -> Position of reference tie-point

yref: i32 -> Position of reference tie-point

xsec: i32 -> Position of secondary tie-point

ysec: i32 -> Position of secondary tie-point

Source

pub fn mosaic_with_opts( &self, sec: &VipsImage, direction: Direction, xref: i32, yref: i32, xsec: i32, ysec: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsMosaic (mosaic), mosaic two images returns VipsImage - Output image

sec: &VipsImage -> Secondary image

direction: Direction -> Horizontal or vertical mosaic

xref: i32 -> Position of reference tie-point

yref: i32 -> Position of reference tie-point

xsec: i32 -> Position of secondary tie-point

ysec: i32 -> Position of secondary tie-point

Optional arguments

hwindow: i32 -> Half window size

harea: i32 -> Half area size

mblend: i32 -> Maximum blend size

bandno: i32 -> Band to search for features on

dx0: &mut i32 -> Detected integer offset

dy0: &mut i32 -> Detected integer offset

scale1: &mut f64 -> Detected scale

angle1: &mut f64 -> Detected rotation

dy1: &mut f64 -> Detected first-order displacement

dx1: &mut f64 -> Detected first-order displacement

Source

pub fn msb(&self) -> Result<VipsImage>

VipsMsb (msb), pick most-significant byte from an image returns VipsImage - Output image

Source

pub fn msb_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsMsb (msb), pick most-significant byte from an image returns VipsImage - Output image

Optional arguments

band: i32 -> Band to msb

Source

pub fn multiply(&self, right: &VipsImage) -> Result<VipsImage>

VipsMultiply (multiply), multiply two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn openexrload(filename: &str) -> Result<VipsImage>

VipsForeignLoadOpenexr (openexrload), load an OpenEXR image (.exr), priority=200, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn openexrload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadOpenexr (openexrload), load an OpenEXR image (.exr), priority=200, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn openslideload(filename: &str) -> Result<VipsImage>

VipsForeignLoadOpenslideFile (openslideload), load file with OpenSlide (.svs, .vms, .vmu, .ndpi, .scn, .mrxs, .svslide, .tif, .bif), priority=100, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn openslideload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadOpenslideFile (openslideload), load file with OpenSlide (.svs, .vms, .vmu, .ndpi, .scn, .mrxs, .svslide, .tif, .bif), priority=100, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

level: i32 -> Load this level from the file

autocrop: bool -> Crop to image bounds

associated: &str -> Load this associated image

attach_associated: bool -> Attach all associated images

rgb: bool -> Output RGB (not RGBA)

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn openslideload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadOpenslideSource (openslideload_source), load source with OpenSlide, priority=100, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn openslideload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadOpenslideSource (openslideload_source), load source with OpenSlide, priority=100, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

level: i32 -> Load this level from the file

autocrop: bool -> Crop to image bounds

associated: &str -> Load this associated image

attach_associated: bool -> Attach all associated images

rgb: bool -> Output RGB (not RGBA)

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pdfload(filename: &str) -> Result<VipsImage>

VipsForeignLoadPdfFile (pdfload), load PDF from file (.pdf), priority=0, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn pdfload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPdfFile (pdfload), load PDF from file (.pdf), priority=0, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

dpi: f64 -> DPI to render at

scale: f64 -> Factor to scale by

background: &[f64] -> Background colour

password: &str -> Password to decrypt with

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pdfload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadPdfBuffer (pdfload_buffer), load PDF from buffer, priority=0, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn pdfload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPdfBuffer (pdfload_buffer), load PDF from buffer, priority=0, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

dpi: f64 -> DPI to render at

scale: f64 -> Factor to scale by

background: &[f64] -> Background colour

password: &str -> Password to decrypt with

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pdfload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadPdfSource (pdfload_source), load PDF from source, priority=0, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn pdfload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPdfSource (pdfload_source), load PDF from source, priority=0, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

dpi: f64 -> DPI to render at

scale: f64 -> Factor to scale by

background: &[f64] -> Background colour

password: &str -> Password to decrypt with

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn percent(&self, percent: f64) -> Result<i32>

VipsPercent (percent), find threshold for percent of pixels returns i32 - Threshold above which lie percent of pixels

percent: f64 -> Percent of pixels

Source

pub fn perlin(width: i32, height: i32) -> Result<VipsImage>

VipsPerlin (perlin), make a perlin noise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn perlin_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsPerlin (perlin), make a perlin noise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

cell_size: i32 -> Size of Perlin cells

uchar: bool -> Output an unsigned char image

seed: i32 -> Random number seed

Source

pub fn phasecor(&self, in2: &VipsImage) -> Result<VipsImage>

VipsPhasecor (phasecor), calculate phase correlation returns VipsImage - Output image

in2: &VipsImage -> Second input image

Source

pub fn pngload(filename: &str) -> Result<VipsImage>

VipsForeignLoadPngFile (pngload), load png from file (.png), priority=200, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn pngload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPngFile (pngload), load png from file (.png), priority=200, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pngload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadPngBuffer (pngload_buffer), load png from buffer, priority=200, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn pngload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPngBuffer (pngload_buffer), load png from buffer, priority=200, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pngload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadPngSource (pngload_source), load png from source, priority=200, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn pngload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPngSource (pngload_source), load png from source, priority=200, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn pngsave(&self, filename: &str) -> Result<()>

VipsForeignSavePngFile (pngsave), save image to png file (.png), priority=0, mono rgb alpha

filename: &str -> Filename to save to

Source

pub fn pngsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSavePngFile (pngsave), save image to png file (.png), priority=0, mono rgb alpha

filename: &str -> Filename to save to

Optional arguments

compression: i32 -> Compression factor

interlace: bool -> Interlace image

filter: ForeignPngFilter -> libpng row filter flag(s)

palette: bool -> Quantise to 8bpp palette

Q: i32 -> Quantisation quality

dither: f64 -> Amount of dithering

bitdepth: i32 -> Write as a 1, 2, 4, 8 or 16 bit image

effort: i32 -> Quantisation CPU effort

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn pngsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSavePngBuffer (pngsave_buffer), save image to png buffer (.png), priority=0, mono rgb alpha returns Vec<u8> - Buffer to save to

Source

pub fn pngsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSavePngBuffer (pngsave_buffer), save image to png buffer (.png), priority=0, mono rgb alpha returns Vec<u8> - Buffer to save to

Optional arguments

compression: i32 -> Compression factor

interlace: bool -> Interlace image

filter: ForeignPngFilter -> libpng row filter flag(s)

palette: bool -> Quantise to 8bpp palette

Q: i32 -> Quantisation quality

dither: f64 -> Amount of dithering

bitdepth: i32 -> Write as a 1, 2, 4, 8 or 16 bit image

effort: i32 -> Quantisation CPU effort

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn pngsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSavePngTarget (pngsave_target), save image to target as PNG (.png), priority=0, mono rgb alpha

target: &VipsTarget -> Target to save to

Source

pub fn pngsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSavePngTarget (pngsave_target), save image to target as PNG (.png), priority=0, mono rgb alpha

target: &VipsTarget -> Target to save to

Optional arguments

compression: i32 -> Compression factor

interlace: bool -> Interlace image

filter: ForeignPngFilter -> libpng row filter flag(s)

palette: bool -> Quantise to 8bpp palette

Q: i32 -> Quantisation quality

dither: f64 -> Amount of dithering

bitdepth: i32 -> Write as a 1, 2, 4, 8 or 16 bit image

effort: i32 -> Quantisation CPU effort

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn ppmload(filename: &str) -> Result<VipsImage>

VipsForeignLoadPpmFile (ppmload), load ppm from file (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn ppmload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPpmFile (ppmload), load ppm from file (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a, get_flags, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn ppmload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadPpmBuffer (ppmload_buffer), load ppm from buffer (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn ppmload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPpmBuffer (ppmload_buffer), load ppm from buffer (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a_buffer, get_flags, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn ppmload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadPpmSource (ppmload_source), load ppm from source (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn ppmload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadPpmSource (ppmload_source), load ppm from source (.pbm, .pgm, .ppm, .pfm, .pnm), priority=200, untrusted, is_a_source, get_flags, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn ppmsave(&self, filename: &str) -> Result<()>

VipsForeignSavePpmFile (ppmsave), save image to ppm file (.pbm, .pgm, .ppm, .pfm, .pnm), priority=0,

filename: &str -> Filename to save to

Source

pub fn ppmsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSavePpmFile (ppmsave), save image to ppm file (.pbm, .pgm, .ppm, .pfm, .pnm), priority=0,

filename: &str -> Filename to save to

Optional arguments

format: ForeignPpmFormat -> Format to save in

ascii: bool -> Save as ascii

bitdepth: i32 -> Set to 1 to write as a 1 bit image

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn ppmsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSavePpmTarget (ppmsave_target), save to ppm (.ppm), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn ppmsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSavePpmTarget (ppmsave_target), save to ppm (.ppm), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

format: ForeignPpmFormat -> Format to save in

ascii: bool -> Save as ascii

bitdepth: i32 -> Set to 1 to write as a 1 bit image

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn premultiply(&self) -> Result<VipsImage>

VipsPremultiply (premultiply), premultiply image alpha returns VipsImage - Output image

Source

pub fn premultiply_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsPremultiply (premultiply), premultiply image alpha returns VipsImage - Output image

Optional arguments

max_alpha: f64 -> Maximum value of alpha channel

Source

pub fn prewitt(&self) -> Result<VipsImage>

VipsPrewitt (prewitt), Prewitt edge detector returns VipsImage - Output image

Source

pub fn profile(&self) -> Result<(VipsImage, VipsImage)>

VipsProfile (profile), find image profiles Tuple ( VipsImage - First non-zero pixel in column VipsImage - First non-zero pixel in row )

Source

pub fn profile_load(name: &str) -> Result<Vec<u8>>

VipsProfileLoad (profile_load), load named ICC profile returns Vec<u8> - Loaded profile

name: &str -> Profile name

Source

pub fn project(&self) -> Result<(VipsImage, VipsImage)>

VipsProject (project), find image projections Tuple ( VipsImage - Sums of columns VipsImage - Sums of rows )

Source

pub fn quadratic(&self, coeff: &VipsImage) -> Result<VipsImage>

VipsQuadratic (quadratic), resample an image with a quadratic transform returns VipsImage - Output image

coeff: &VipsImage -> Coefficient matrix

Source

pub fn quadratic_with_opts( &self, coeff: &VipsImage, option: VOption<'_>, ) -> Result<VipsImage>

VipsQuadratic (quadratic), resample an image with a quadratic transform returns VipsImage - Output image

coeff: &VipsImage -> Coefficient matrix

Optional arguments

interpolate: &VipsInterpolate -> Interpolate values with this

Source

pub fn rad2float(&self) -> Result<VipsImage>

VipsRad2float (rad2float), unpack Radiance coding to float RGB returns VipsImage - Output image

Source

pub fn radload(filename: &str) -> Result<VipsImage>

VipsForeignLoadRadFile (radload), load a Radiance image from a file (.hdr), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn radload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadRadFile (radload), load a Radiance image from a file (.hdr), priority=-50, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn radload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadRadBuffer (radload_buffer), load rad from buffer, priority=-50, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn radload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadRadBuffer (radload_buffer), load rad from buffer, priority=-50, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn radload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadRadSource (radload_source), load rad from source, priority=-50, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn radload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadRadSource (radload_source), load rad from source, priority=-50, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn radsave(&self, filename: &str) -> Result<()>

VipsForeignSaveRadFile (radsave), save image to Radiance file (.hdr), priority=0, mono rgb

filename: &str -> Filename to save to

Source

pub fn radsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveRadFile (radsave), save image to Radiance file (.hdr), priority=0, mono rgb

filename: &str -> Filename to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn radsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveRadBuffer (radsave_buffer), save image to Radiance buffer (.hdr), priority=0, mono rgb returns Vec<u8> - Buffer to save to

Source

pub fn radsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveRadBuffer (radsave_buffer), save image to Radiance buffer (.hdr), priority=0, mono rgb returns Vec<u8> - Buffer to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn radsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveRadTarget (radsave_target), save image to Radiance target (.hdr), priority=0, mono rgb

target: &VipsTarget -> Target to save to

Source

pub fn radsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveRadTarget (radsave_target), save image to Radiance target (.hdr), priority=0, mono rgb

target: &VipsTarget -> Target to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn rank(&self, width: i32, height: i32, index: i32) -> Result<VipsImage>

VipsRank (rank), rank filter returns VipsImage - Output image

width: i32 -> Window width in pixels

height: i32 -> Window height in pixels

index: i32 -> Select pixel at index

Source

pub fn rawload( filename: &str, width: i32, height: i32, bands: i32, ) -> Result<VipsImage>

VipsForeignLoadRaw (rawload), load raw data from a file, priority=0, untrusted, get_flags, get_flags_filename, header returns VipsImage - Output image

filename: &str -> Filename to load from

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

bands: i32 -> Number of bands in image

Source

pub fn rawload_with_opts( filename: &str, width: i32, height: i32, bands: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadRaw (rawload), load raw data from a file, priority=0, untrusted, get_flags, get_flags_filename, header returns VipsImage - Output image

filename: &str -> Filename to load from

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

bands: i32 -> Number of bands in image

Optional arguments

offset: u64 -> Offset in bytes from start of file

format: BandFormat -> Pixel format in image

interpretation: Interpretation -> Pixel interpretation

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn rawsave(&self, filename: &str) -> Result<()>

VipsForeignSaveRawFile (rawsave), save image to raw file (.raw), priority=0,

filename: &str -> Filename to save to

Source

pub fn rawsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveRawFile (rawsave), save image to raw file (.raw), priority=0,

filename: &str -> Filename to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn rawsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveRawBuffer (rawsave_buffer), write raw image to buffer (.raw), priority=0, returns Vec<u8> - Buffer to save to

Source

pub fn rawsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveRawBuffer (rawsave_buffer), write raw image to buffer (.raw), priority=0, returns Vec<u8> - Buffer to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn rawsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveRawTarget (rawsave_target), write raw image to target (.raw), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn rawsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveRawTarget (rawsave_target), write raw image to target (.raw), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn recomb(&self, m: &VipsImage) -> Result<VipsImage>

VipsRecomb (recomb), linear recombination with matrix returns VipsImage - Output image

m: &VipsImage -> Matrix of coefficients

Source

pub fn reduce(&self, hshrink: f64, vshrink: f64) -> Result<VipsImage>

VipsReduce (reduce), reduce an image returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

vshrink: f64 -> Vertical shrink factor

Source

pub fn reduce_with_opts( &self, hshrink: f64, vshrink: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsReduce (reduce), reduce an image returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

vshrink: f64 -> Vertical shrink factor

Optional arguments

kernel: Kernel -> Resampling kernel

gap: f64 -> Reducing gap

Source

pub fn reduceh(&self, hshrink: f64) -> Result<VipsImage>

VipsReduceh (reduceh), shrink an image horizontally returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

Source

pub fn reduceh_with_opts( &self, hshrink: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsReduceh (reduceh), shrink an image horizontally returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

Optional arguments

kernel: Kernel -> Resampling kernel

gap: f64 -> Reducing gap

Source

pub fn reducev(&self, vshrink: f64) -> Result<VipsImage>

VipsReducev (reducev), shrink an image vertically returns VipsImage - Output image

vshrink: f64 -> Vertical shrink factor

Source

pub fn reducev_with_opts( &self, vshrink: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsReducev (reducev), shrink an image vertically returns VipsImage - Output image

vshrink: f64 -> Vertical shrink factor

Optional arguments

kernel: Kernel -> Resampling kernel

gap: f64 -> Reducing gap

Source

pub fn relational( &self, right: &VipsImage, relational: OperationRelational, ) -> Result<VipsImage>

VipsRelational (relational), relational operation on two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

relational: OperationRelational -> Relational to perform

Source

pub fn relational_const( &self, relational: OperationRelational, c: &[f64], ) -> Result<VipsImage>

VipsRelationalConst (relational_const), relational operations against a constant returns VipsImage - Output image

relational: OperationRelational -> Relational to perform

c: &[f64] -> Array of constants

Source

pub fn remainder(&self, right: &VipsImage) -> Result<VipsImage>

VipsRemainder (remainder), remainder after integer division of two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn remainder_const(&self, c: &[f64]) -> Result<VipsImage>

VipsRemainderConst (remainder_const), remainder after integer division of an image and a constant returns VipsImage - Output image

c: &[f64] -> Array of constants

Source

pub fn remosaic(&self, old_str: &str, new_str: &str) -> Result<VipsImage>

VipsRemosaic (remosaic), rebuild an mosaiced image returns VipsImage - Output image

old_str: &str -> Search for this string

new_str: &str -> And swap for this string

Source

pub fn replicate(&self, across: i32, down: i32) -> Result<VipsImage>

VipsReplicate (replicate), replicate an image returns VipsImage - Output image

across: i32 -> Repeat this many times horizontally

down: i32 -> Repeat this many times vertically

Source

pub fn resize(&self, scale: f64) -> Result<VipsImage>

VipsResize (resize), resize an image returns VipsImage - Output image

scale: f64 -> Scale image by this factor

Source

pub fn resize_with_opts( &self, scale: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsResize (resize), resize an image returns VipsImage - Output image

scale: f64 -> Scale image by this factor

Optional arguments

kernel: Kernel -> Resampling kernel

gap: f64 -> Reducing gap

vscale: f64 -> Vertical scale image by this factor

Source

pub fn rot45(&self) -> Result<VipsImage>

VipsRot45 (rot45), rotate an image returns VipsImage - Output image

Source

pub fn rot45_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsRot45 (rot45), rotate an image returns VipsImage - Output image

Optional arguments

angle: Angle45 -> Angle to rotate image

Source

pub fn rot(&self, angle: Angle) -> Result<VipsImage>

VipsRot (rot), rotate an image returns VipsImage - Output image

angle: Angle -> Angle to rotate image

Source

pub fn rotate(&self, angle: f64) -> Result<VipsImage>

VipsRotate (rotate), rotate an image by a number of degrees returns VipsImage - Output image

angle: f64 -> Rotate clockwise by this many degrees

Source

pub fn rotate_with_opts( &self, angle: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsRotate (rotate), rotate an image by a number of degrees returns VipsImage - Output image

angle: f64 -> Rotate clockwise by this many degrees

Optional arguments

interpolate: &VipsInterpolate -> Interpolate pixels with this

background: &[f64] -> Background value

odx: f64 -> Horizontal output displacement

ody: f64 -> Vertical output displacement

idx: f64 -> Horizontal input displacement

idy: f64 -> Vertical input displacement

Source

pub fn round(&self, round: OperationRound) -> Result<VipsImage>

VipsRound (round), perform a round function on an image returns VipsImage - Output image

round: OperationRound -> Rounding operation to perform

Source

pub fn sRGB2HSV(&self) -> Result<VipsImage>

VipssRGB2HSV (sRGB2HSV), transform sRGB to HSV returns VipsImage - Output image

Source

pub fn sRGB2scRGB(&self) -> Result<VipsImage>

VipssRGB2scRGB (sRGB2scRGB), convert an sRGB image to scRGB returns VipsImage - Output image

Source

pub fn scRGB2BW(&self) -> Result<VipsImage>

VipsscRGB2BW (scRGB2BW), convert scRGB to BW returns VipsImage - Output image

Source

pub fn scRGB2BW_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsscRGB2BW (scRGB2BW), convert scRGB to BW returns VipsImage - Output image

Optional arguments

depth: i32 -> Output device space depth in bits

Source

pub fn scRGB2XYZ(&self) -> Result<VipsImage>

VipsscRGB2XYZ (scRGB2XYZ), transform scRGB to XYZ returns VipsImage - Output image

Source

pub fn scRGB2sRGB(&self) -> Result<VipsImage>

VipsscRGB2sRGB (scRGB2sRGB), convert scRGB to sRGB returns VipsImage - Output image

Source

pub fn scRGB2sRGB_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsscRGB2sRGB (scRGB2sRGB), convert scRGB to sRGB returns VipsImage - Output image

Optional arguments

depth: i32 -> Output device space depth in bits

Source

pub fn scale(&self) -> Result<VipsImage>

VipsScale (scale), scale an image to uchar returns VipsImage - Output image

Source

pub fn scale_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsScale (scale), scale an image to uchar returns VipsImage - Output image

Optional arguments

exp: f64 -> Exponent for log scale

log: bool -> Log scale

Source

pub fn scharr(&self) -> Result<VipsImage>

VipsScharr (scharr), Scharr edge detector returns VipsImage - Output image

Source

pub fn sdf(width: i32, height: i32, shape: SdfShape) -> Result<VipsImage>

VipsSdf (sdf), create an SDF image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

shape: SdfShape -> SDF shape to create

Source

pub fn sdf_with_opts( width: i32, height: i32, shape: SdfShape, option: VOption<'_>, ) -> Result<VipsImage>

VipsSdf (sdf), create an SDF image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

shape: SdfShape -> SDF shape to create

Optional arguments

r: f64 -> Radius

a: &[f64] -> Point a

b: &[f64] -> Point b

corners: &[f64] -> Corner radii

Source

pub fn sequential(&self) -> Result<VipsImage>

VipsSequential (sequential), check sequential access returns VipsImage - Output image

Source

pub fn sequential_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsSequential (sequential), check sequential access returns VipsImage - Output image

Optional arguments

tile_height: i32 -> Tile height in pixels

Source

pub fn sharpen(&self) -> Result<VipsImage>

VipsSharpen (sharpen), unsharp masking for print returns VipsImage - Output image

Source

pub fn sharpen_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsSharpen (sharpen), unsharp masking for print returns VipsImage - Output image

Optional arguments

sigma: f64 -> Sigma of Gaussian

x1: f64 -> Flat/jaggy threshold

y2: f64 -> Maximum brightening

y3: f64 -> Maximum darkening

m1: f64 -> Slope for flat areas

m2: f64 -> Slope for jaggy areas

Source

pub fn shrink(&self, hshrink: f64, vshrink: f64) -> Result<VipsImage>

VipsShrink (shrink), shrink an image returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

vshrink: f64 -> Vertical shrink factor

Source

pub fn shrink_with_opts( &self, hshrink: f64, vshrink: f64, option: VOption<'_>, ) -> Result<VipsImage>

VipsShrink (shrink), shrink an image returns VipsImage - Output image

hshrink: f64 -> Horizontal shrink factor

vshrink: f64 -> Vertical shrink factor

Optional arguments

ceil: bool -> Round-up output dimensions

Source

pub fn shrinkh(&self, hshrink: i32) -> Result<VipsImage>

VipsShrinkh (shrinkh), shrink an image horizontally returns VipsImage - Output image

hshrink: i32 -> Horizontal shrink factor

Source

pub fn shrinkh_with_opts( &self, hshrink: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsShrinkh (shrinkh), shrink an image horizontally returns VipsImage - Output image

hshrink: i32 -> Horizontal shrink factor

Optional arguments

ceil: bool -> Round-up output dimensions

Source

pub fn shrinkv(&self, vshrink: i32) -> Result<VipsImage>

VipsShrinkv (shrinkv), shrink an image vertically returns VipsImage - Output image

vshrink: i32 -> Vertical shrink factor

Source

pub fn shrinkv_with_opts( &self, vshrink: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsShrinkv (shrinkv), shrink an image vertically returns VipsImage - Output image

vshrink: i32 -> Vertical shrink factor

Optional arguments

ceil: bool -> Round-up output dimensions

Source

pub fn sign(&self) -> Result<VipsImage>

VipsSign (sign), unit vector of pixel returns VipsImage - Output image

Source

pub fn similarity(&self) -> Result<VipsImage>

VipsSimilarity (similarity), similarity transform of an image returns VipsImage - Output image

Source

pub fn similarity_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsSimilarity (similarity), similarity transform of an image returns VipsImage - Output image

Optional arguments

scale: f64 -> Scale by this factor

angle: f64 -> Rotate clockwise by this many degrees

interpolate: &VipsInterpolate -> Interpolate pixels with this

background: &[f64] -> Background value

odx: f64 -> Horizontal output displacement

ody: f64 -> Vertical output displacement

idx: f64 -> Horizontal input displacement

idy: f64 -> Vertical input displacement

Source

pub fn sines(width: i32, height: i32) -> Result<VipsImage>

VipsSines (sines), make a 2D sine wave returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn sines_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsSines (sines), make a 2D sine wave returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

uchar: bool -> Output an unsigned char image

hfreq: f64 -> Horizontal spatial frequency

vfreq: f64 -> Vertical spatial frequency

Source

pub fn smartcrop(&self, width: i32, height: i32) -> Result<VipsImage>

VipsSmartcrop (smartcrop), extract an area from an image returns VipsImage - Output image

width: i32 -> Width of extract area

height: i32 -> Height of extract area

Source

pub fn smartcrop_with_opts( &self, width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsSmartcrop (smartcrop), extract an area from an image returns VipsImage - Output image

width: i32 -> Width of extract area

height: i32 -> Height of extract area

Optional arguments

attention_x: &mut i32 -> Horizontal position of attention centre

attention_y: &mut i32 -> Vertical position of attention centre

interesting: Interesting -> How to measure interestingness

premultiplied: bool -> Input image already has premultiplied alpha

Source

pub fn sobel(&self) -> Result<VipsImage>

VipsSobel (sobel), Sobel edge detector returns VipsImage - Output image

Source

pub fn spcor(&self, refp: &VipsImage) -> Result<VipsImage>

VipsSpcor (spcor), spatial correlation returns VipsImage - Output image

refp: &VipsImage -> Input reference image

Source

pub fn spectrum(&self) -> Result<VipsImage>

VipsSpectrum (spectrum), make displayable power spectrum returns VipsImage - Output image

Source

pub fn stats(&self) -> Result<VipsImage>

VipsStats (stats), find many image stats returns VipsImage - Output array of statistics

Source

pub fn stdif(&self, width: i32, height: i32) -> Result<VipsImage>

VipsStdif (stdif), statistical difference returns VipsImage - Output image

width: i32 -> Window width in pixels

height: i32 -> Window height in pixels

Source

pub fn stdif_with_opts( &self, width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsStdif (stdif), statistical difference returns VipsImage - Output image

width: i32 -> Window width in pixels

height: i32 -> Window height in pixels

Optional arguments

s0: f64 -> New deviation

b: f64 -> Weight of new deviation

m0: f64 -> New mean

a: f64 -> Weight of new mean

Source

pub fn subsample(&self, xfac: i32, yfac: i32) -> Result<VipsImage>

VipsSubsample (subsample), subsample an image returns VipsImage - Output image

xfac: i32 -> Horizontal subsample factor

yfac: i32 -> Vertical subsample factor

Source

pub fn subsample_with_opts( &self, xfac: i32, yfac: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsSubsample (subsample), subsample an image returns VipsImage - Output image

xfac: i32 -> Horizontal subsample factor

yfac: i32 -> Vertical subsample factor

Optional arguments

point: bool -> Point sample

Source

pub fn subtract(&self, right: &VipsImage) -> Result<VipsImage>

VipsSubtract (subtract), subtract two images returns VipsImage - Output image

right: &VipsImage -> Right-hand image argument

Source

pub fn sum(inp: &[VipsImage]) -> Result<VipsImage>

VipsSum (sum), sum an array of images returns VipsImage - Output image

inp: &[VipsImage] -> Array of input images

Source

pub fn svgload(filename: &str) -> Result<VipsImage>

VipsForeignLoadSvgFile (svgload), load SVG with rsvg (.svg, .svgz, .svg.gz), priority=-5, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn svgload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadSvgFile (svgload), load SVG with rsvg (.svg, .svgz, .svg.gz), priority=-5, untrusted, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

dpi: f64 -> Render at this DPI

scale: f64 -> Scale output by this factor

unlimited: bool -> Allow SVG of any size

stylesheet: &str -> Custom CSS

high_bitdepth: bool -> Enable scRGB 128-bit output (32-bit per channel)

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn svgload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadSvgBuffer (svgload_buffer), load SVG with rsvg, priority=-5, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn svgload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadSvgBuffer (svgload_buffer), load SVG with rsvg, priority=-5, untrusted, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

dpi: f64 -> Render at this DPI

scale: f64 -> Scale output by this factor

unlimited: bool -> Allow SVG of any size

stylesheet: &str -> Custom CSS

high_bitdepth: bool -> Enable scRGB 128-bit output (32-bit per channel)

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn svgload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadSvgSource (svgload_source), load svg from source, priority=-5, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn svgload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadSvgSource (svgload_source), load svg from source, priority=-5, untrusted, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

dpi: f64 -> Render at this DPI

scale: f64 -> Scale output by this factor

unlimited: bool -> Allow SVG of any size

stylesheet: &str -> Custom CSS

high_bitdepth: bool -> Enable scRGB 128-bit output (32-bit per channel)

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn switch(tests: &[VipsImage]) -> Result<VipsImage>

VipsSwitch (switch), find the index of the first non-zero pixel in tests returns VipsImage - Output image

tests: &[VipsImage] -> Table of images to test

Source

pub fn system(cmd_format: &str) -> Result<()>

VipsSystem (system), run an external command

cmd_format: &str -> Command to run

Source

pub fn system_with_opts(cmd_format: &str, option: VOption<'_>) -> Result<()>

VipsSystem (system), run an external command

cmd_format: &str -> Command to run

Optional arguments

inp: &[VipsImage] -> Array of input images

out: &mut VipsImage -> Output image

log: &str -> Command log

out_format: &str -> Format for output filename

in_format: &str -> Format for input filename

Source

pub fn text(text: &str) -> Result<VipsImage>

VipsText (text), make a text image returns VipsImage - Output image

text: &str -> Text to render

Source

pub fn text_with_opts(text: &str, option: VOption<'_>) -> Result<VipsImage>

VipsText (text), make a text image returns VipsImage - Output image

text: &str -> Text to render

Optional arguments

font: &str -> Font to render with

width: i32 -> Maximum image width in pixels

height: i32 -> Maximum image height in pixels

align: Align -> Align on the low, centre or high edge

justify: bool -> Justify lines

dpi: i32 -> DPI to render at

autofit_dpi: &mut i32 -> DPI selected by autofit

spacing: i32 -> Line spacing

fontfile: &str -> Load this font file

rgba: bool -> Enable RGBA output

wrap: TextWrap -> Wrap lines on word or character boundaries

Source

pub fn thumbnail(filename: &str, width: i32) -> Result<VipsImage>

VipsThumbnailFile (thumbnail), generate thumbnail from file returns VipsImage - Output image

filename: &str -> Filename to read from

width: i32 -> Size to this width

Source

pub fn thumbnail_with_opts( filename: &str, width: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsThumbnailFile (thumbnail), generate thumbnail from file returns VipsImage - Output image

filename: &str -> Filename to read from

width: i32 -> Size to this width

Optional arguments

height: i32 -> Size to this height

size: Size -> Only upsize, only downsize, or both

no_rotate: bool -> Don’t use orientation tags to rotate image upright

crop: Interesting -> Reduce to fill target rectangle, then crop

linear: bool -> Reduce in linear light

input_profile: &str -> Fallback input profile

output_profile: &str -> Fallback output profile

intent: Intent -> Rendering intent

fail_on: FailOn -> Error level to fail on

Source

pub fn thumbnail_buffer(buffer: &[u8], width: i32) -> Result<VipsImage>

VipsThumbnailBuffer (thumbnail_buffer), generate thumbnail from buffer returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

width: i32 -> Size to this width

Source

pub fn thumbnail_buffer_with_opts( buffer: &[u8], width: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsThumbnailBuffer (thumbnail_buffer), generate thumbnail from buffer returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

width: i32 -> Size to this width

Optional arguments

option_string: &str -> Options that are passed on to the underlying loader

height: i32 -> Size to this height

size: Size -> Only upsize, only downsize, or both

no_rotate: bool -> Don’t use orientation tags to rotate image upright

crop: Interesting -> Reduce to fill target rectangle, then crop

linear: bool -> Reduce in linear light

input_profile: &str -> Fallback input profile

output_profile: &str -> Fallback output profile

intent: Intent -> Rendering intent

fail_on: FailOn -> Error level to fail on

Source

pub fn thumbnail_image(&self, width: i32) -> Result<VipsImage>

VipsThumbnailImage (thumbnail_image), generate thumbnail from image returns VipsImage - Output image

width: i32 -> Size to this width

Source

pub fn thumbnail_image_with_opts( &self, width: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsThumbnailImage (thumbnail_image), generate thumbnail from image returns VipsImage - Output image

width: i32 -> Size to this width

Optional arguments

height: i32 -> Size to this height

size: Size -> Only upsize, only downsize, or both

no_rotate: bool -> Don’t use orientation tags to rotate image upright

crop: Interesting -> Reduce to fill target rectangle, then crop

linear: bool -> Reduce in linear light

input_profile: &str -> Fallback input profile

output_profile: &str -> Fallback output profile

intent: Intent -> Rendering intent

fail_on: FailOn -> Error level to fail on

Source

pub fn thumbnail_source(source: &VipsSource, width: i32) -> Result<VipsImage>

VipsThumbnailSource (thumbnail_source), generate thumbnail from source returns VipsImage - Output image

source: &VipsSource -> Source to load from

width: i32 -> Size to this width

Source

pub fn thumbnail_source_with_opts( source: &VipsSource, width: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsThumbnailSource (thumbnail_source), generate thumbnail from source returns VipsImage - Output image

source: &VipsSource -> Source to load from

width: i32 -> Size to this width

Optional arguments

option_string: &str -> Options that are passed on to the underlying loader

height: i32 -> Size to this height

size: Size -> Only upsize, only downsize, or both

no_rotate: bool -> Don’t use orientation tags to rotate image upright

crop: Interesting -> Reduce to fill target rectangle, then crop

linear: bool -> Reduce in linear light

input_profile: &str -> Fallback input profile

output_profile: &str -> Fallback output profile

intent: Intent -> Rendering intent

fail_on: FailOn -> Error level to fail on

Source

pub fn tiffload(filename: &str) -> Result<VipsImage>

VipsForeignLoadTiffFile (tiffload), load tiff from file (.tif, .tiff), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn tiffload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadTiffFile (tiffload), load tiff from file (.tif, .tiff), priority=50, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

autorotate: bool -> Rotate image using orientation tag

subifd: i32 -> Subifd index

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn tiffload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadTiffBuffer (tiffload_buffer), load tiff from buffer, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn tiffload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadTiffBuffer (tiffload_buffer), load tiff from buffer, priority=50, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

autorotate: bool -> Rotate image using orientation tag

subifd: i32 -> Subifd index

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn tiffload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadTiffSource (tiffload_source), load tiff from source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn tiffload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadTiffSource (tiffload_source), load tiff from source, priority=50, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

autorotate: bool -> Rotate image using orientation tag

subifd: i32 -> Subifd index

unlimited: bool -> Remove all denial of service limits

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn tiffsave(&self, filename: &str) -> Result<()>

VipsForeignSaveTiffFile (tiffsave), save image to tiff file (.tif, .tiff), priority=0,

filename: &str -> Filename to save to

Source

pub fn tiffsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveTiffFile (tiffsave), save image to tiff file (.tif, .tiff), priority=0,

filename: &str -> Filename to save to

Optional arguments

compression: ForeignTiffCompression -> Compression for this file

Q: i32 -> Q factor

predictor: ForeignTiffPredictor -> Compression prediction

tile: bool -> Write a tiled tiff

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

pyramid: bool -> Write a pyramidal tiff

miniswhite: bool -> Use 0 for white in 1-bit images

bitdepth: i32 -> Write as a 1, 2, 4 or 8 bit image

resunit: ForeignTiffResunit -> Resolution unit

xres: f64 -> Horizontal resolution in pixels/mm

yres: f64 -> Vertical resolution in pixels/mm

bigtiff: bool -> Write a bigtiff image

properties: bool -> Write a properties document to IMAGEDESCRIPTION

region_shrink: RegionShrink -> Method to shrink regions

level: i32 -> Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level

lossless: bool -> Enable WEBP lossless mode

depth: ForeignDzDepth -> Pyramid depth

subifd: bool -> Save pyr layers as sub-IFDs

premultiply: bool -> Save with premultiplied alpha

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn tiffsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveTiffBuffer (tiffsave_buffer), save image to tiff buffer (.tif, .tiff), priority=0, returns Vec<u8> - Buffer to save to

Source

pub fn tiffsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveTiffBuffer (tiffsave_buffer), save image to tiff buffer (.tif, .tiff), priority=0, returns Vec<u8> - Buffer to save to

Optional arguments

compression: ForeignTiffCompression -> Compression for this file

Q: i32 -> Q factor

predictor: ForeignTiffPredictor -> Compression prediction

tile: bool -> Write a tiled tiff

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

pyramid: bool -> Write a pyramidal tiff

miniswhite: bool -> Use 0 for white in 1-bit images

bitdepth: i32 -> Write as a 1, 2, 4 or 8 bit image

resunit: ForeignTiffResunit -> Resolution unit

xres: f64 -> Horizontal resolution in pixels/mm

yres: f64 -> Vertical resolution in pixels/mm

bigtiff: bool -> Write a bigtiff image

properties: bool -> Write a properties document to IMAGEDESCRIPTION

region_shrink: RegionShrink -> Method to shrink regions

level: i32 -> Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level

lossless: bool -> Enable WEBP lossless mode

depth: ForeignDzDepth -> Pyramid depth

subifd: bool -> Save pyr layers as sub-IFDs

premultiply: bool -> Save with premultiplied alpha

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn tiffsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveTiffTarget (tiffsave_target), save image to tiff target (.tif, .tiff), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn tiffsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveTiffTarget (tiffsave_target), save image to tiff target (.tif, .tiff), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

compression: ForeignTiffCompression -> Compression for this file

Q: i32 -> Q factor

predictor: ForeignTiffPredictor -> Compression prediction

tile: bool -> Write a tiled tiff

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

pyramid: bool -> Write a pyramidal tiff

miniswhite: bool -> Use 0 for white in 1-bit images

bitdepth: i32 -> Write as a 1, 2, 4 or 8 bit image

resunit: ForeignTiffResunit -> Resolution unit

xres: f64 -> Horizontal resolution in pixels/mm

yres: f64 -> Vertical resolution in pixels/mm

bigtiff: bool -> Write a bigtiff image

properties: bool -> Write a properties document to IMAGEDESCRIPTION

region_shrink: RegionShrink -> Method to shrink regions

level: i32 -> Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level

lossless: bool -> Enable WEBP lossless mode

depth: ForeignDzDepth -> Pyramid depth

subifd: bool -> Save pyr layers as sub-IFDs

premultiply: bool -> Save with premultiplied alpha

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn tilecache(&self) -> Result<VipsImage>

VipsTileCache (tilecache), cache an image as a set of tiles returns VipsImage - Output image

Source

pub fn tilecache_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsTileCache (tilecache), cache an image as a set of tiles returns VipsImage - Output image

Optional arguments

tile_width: i32 -> Tile width in pixels

tile_height: i32 -> Tile height in pixels

max_tiles: i32 -> Maximum number of tiles to cache

access: Access -> Expected access pattern

threaded: bool -> Allow threaded access

persistent: bool -> Keep cache between evaluations

Source

pub fn tonelut() -> Result<VipsImage>

VipsTonelut (tonelut), build a look-up table returns VipsImage - Output image

Source

pub fn tonelut_with_opts(option: VOption<'_>) -> Result<VipsImage>

VipsTonelut (tonelut), build a look-up table returns VipsImage - Output image

Optional arguments

in_max: i32 -> Size of LUT to build

out_max: i32 -> Maximum value in output LUT

Lb: f64 -> Lowest value in output

Lw: f64 -> Highest value in output

Ps: f64 -> Position of shadow

Pm: f64 -> Position of mid-tones

Ph: f64 -> Position of highlights

S: f64 -> Adjust shadows by this much

M: f64 -> Adjust mid-tones by this much

H: f64 -> Adjust highlights by this much

Source

pub fn transpose3d(&self) -> Result<VipsImage>

VipsTranspose3d (transpose3d), transpose3d an image returns VipsImage - Output image

Source

pub fn transpose3d_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsTranspose3d (transpose3d), transpose3d an image returns VipsImage - Output image

Optional arguments

page_height: i32 -> Height of each input page

Source

pub fn unpremultiply(&self) -> Result<VipsImage>

VipsUnpremultiply (unpremultiply), unpremultiply image alpha returns VipsImage - Output image

Source

pub fn unpremultiply_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsUnpremultiply (unpremultiply), unpremultiply image alpha returns VipsImage - Output image

Optional arguments

max_alpha: f64 -> Maximum value of alpha channel

alpha_band: i32 -> Unpremultiply with this alpha

Source

pub fn vipsload(filename: &str) -> Result<VipsImage>

VipsForeignLoadVipsFile (vipsload), load vips from file (.v, .vips), priority=200, untrusted, is_a, get_flags, get_flags_filename, header returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn vipsload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadVipsFile (vipsload), load vips from file (.v, .vips), priority=200, untrusted, is_a, get_flags, get_flags_filename, header returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn vipsload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadVipsSource (vipsload_source), load vips from source, priority=200, untrusted, is_a_source, get_flags, get_flags_filename, header returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn vipsload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadVipsSource (vipsload_source), load vips from source, priority=200, untrusted, is_a_source, get_flags, get_flags_filename, header returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn vipssave(&self, filename: &str) -> Result<()>

VipsForeignSaveVipsFile (vipssave), save image to file in vips format (.v, .vips), priority=0,

filename: &str -> Filename to save to

Source

pub fn vipssave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveVipsFile (vipssave), save image to file in vips format (.v, .vips), priority=0,

filename: &str -> Filename to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn vipssave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveVipsTarget (vipssave_target), save image to target in vips format (.v, .vips), priority=0,

target: &VipsTarget -> Target to save to

Source

pub fn vipssave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveVipsTarget (vipssave_target), save image to target in vips format (.v, .vips), priority=0,

target: &VipsTarget -> Target to save to

Optional arguments

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn webpload(filename: &str) -> Result<VipsImage>

VipsForeignLoadWebpFile (webpload), load webp from file (.webp), priority=200, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Source

pub fn webpload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadWebpFile (webpload), load webp from file (.webp), priority=200, is_a, get_flags, get_flags_filename, header, load returns VipsImage - Output image

filename: &str -> Filename to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

scale: f64 -> Factor to scale by

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn webpload_buffer(buffer: &[u8]) -> Result<VipsImage>

VipsForeignLoadWebpBuffer (webpload_buffer), load webp from buffer, priority=200, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Source

pub fn webpload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadWebpBuffer (webpload_buffer), load webp from buffer, priority=200, is_a_buffer, get_flags, get_flags_filename, header, load returns VipsImage - Output image

buffer: &[u8] -> Buffer to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

scale: f64 -> Factor to scale by

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn webpload_source(source: &VipsSource) -> Result<VipsImage>

VipsForeignLoadWebpSource (webpload_source), load webp from source, priority=200, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Source

pub fn webpload_source_with_opts( source: &VipsSource, option: VOption<'_>, ) -> Result<VipsImage>

VipsForeignLoadWebpSource (webpload_source), load webp from source, priority=200, is_a_source, get_flags, get_flags_filename, header, load returns VipsImage - Output image

source: &VipsSource -> Source to load from

Optional arguments

page: i32 -> First page to load

n: i32 -> Number of pages to load, -1 for all

scale: f64 -> Factor to scale by

flags: ForeignFlags -> Flags for this file

memory: bool -> Force open via memory

access: Access -> Required access pattern for this file

fail_on: FailOn -> Error level to fail on

revalidate: bool -> Don’t use a cached result for this operation

Source

pub fn webpsave(&self, filename: &str) -> Result<()>

VipsForeignSaveWebpFile (webpsave), save as WebP (.webp), priority=0, rgb alpha

filename: &str -> Filename to save to

Source

pub fn webpsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveWebpFile (webpsave), save as WebP (.webp), priority=0, rgb alpha

filename: &str -> Filename to save to

Optional arguments

Q: i32 -> Q factor

lossless: bool -> Enable lossless compression

preset: ForeignWebpPreset -> Preset for lossy compression

smart_subsample: bool -> Enable high quality chroma subsampling

near_lossless: bool -> Enable preprocessing in lossless mode (uses Q)

alpha_q: i32 -> Change alpha plane fidelity for lossy compression

min_size: bool -> Optimise for minimum size

kmin: i32 -> Minimum number of frames between key frames

kmax: i32 -> Maximum number of frames between key frames

effort: i32 -> Level of CPU effort to reduce file size

target_size: i32 -> Desired target size in bytes

mixed: bool -> Allow mixed encoding (might reduce file size)

smart_deblock: bool -> Enable auto-adjusting of the deblocking filter

passes: i32 -> Number of entropy-analysis passes (in [1..10])

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn webpsave_buffer(&self) -> Result<Vec<u8>>

VipsForeignSaveWebpBuffer (webpsave_buffer), save as WebP (.webp), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Source

pub fn webpsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>

VipsForeignSaveWebpBuffer (webpsave_buffer), save as WebP (.webp), priority=0, rgb alpha returns Vec<u8> - Buffer to save to

Optional arguments

Q: i32 -> Q factor

lossless: bool -> Enable lossless compression

preset: ForeignWebpPreset -> Preset for lossy compression

smart_subsample: bool -> Enable high quality chroma subsampling

near_lossless: bool -> Enable preprocessing in lossless mode (uses Q)

alpha_q: i32 -> Change alpha plane fidelity for lossy compression

min_size: bool -> Optimise for minimum size

kmin: i32 -> Minimum number of frames between key frames

kmax: i32 -> Maximum number of frames between key frames

effort: i32 -> Level of CPU effort to reduce file size

target_size: i32 -> Desired target size in bytes

mixed: bool -> Allow mixed encoding (might reduce file size)

smart_deblock: bool -> Enable auto-adjusting of the deblocking filter

passes: i32 -> Number of entropy-analysis passes (in [1..10])

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn webpsave_mime(&self) -> Result<()>

VipsForeignSaveWebpMime (webpsave_mime), save image to webp mime (.webp), priority=0, rgb alpha

Source

pub fn webpsave_mime_with_opts(&self, option: VOption<'_>) -> Result<()>

VipsForeignSaveWebpMime (webpsave_mime), save image to webp mime (.webp), priority=0, rgb alpha

Optional arguments

Q: i32 -> Q factor

lossless: bool -> Enable lossless compression

preset: ForeignWebpPreset -> Preset for lossy compression

smart_subsample: bool -> Enable high quality chroma subsampling

near_lossless: bool -> Enable preprocessing in lossless mode (uses Q)

alpha_q: i32 -> Change alpha plane fidelity for lossy compression

min_size: bool -> Optimise for minimum size

kmin: i32 -> Minimum number of frames between key frames

kmax: i32 -> Maximum number of frames between key frames

effort: i32 -> Level of CPU effort to reduce file size

target_size: i32 -> Desired target size in bytes

mixed: bool -> Allow mixed encoding (might reduce file size)

smart_deblock: bool -> Enable auto-adjusting of the deblocking filter

passes: i32 -> Number of entropy-analysis passes (in [1..10])

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn webpsave_target(&self, target: &VipsTarget) -> Result<()>

VipsForeignSaveWebpTarget (webpsave_target), save as WebP (.webp), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Source

pub fn webpsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>

VipsForeignSaveWebpTarget (webpsave_target), save as WebP (.webp), priority=0, rgb alpha

target: &VipsTarget -> Target to save to

Optional arguments

Q: i32 -> Q factor

lossless: bool -> Enable lossless compression

preset: ForeignWebpPreset -> Preset for lossy compression

smart_subsample: bool -> Enable high quality chroma subsampling

near_lossless: bool -> Enable preprocessing in lossless mode (uses Q)

alpha_q: i32 -> Change alpha plane fidelity for lossy compression

min_size: bool -> Optimise for minimum size

kmin: i32 -> Minimum number of frames between key frames

kmax: i32 -> Maximum number of frames between key frames

effort: i32 -> Level of CPU effort to reduce file size

target_size: i32 -> Desired target size in bytes

mixed: bool -> Allow mixed encoding (might reduce file size)

smart_deblock: bool -> Enable auto-adjusting of the deblocking filter

passes: i32 -> Number of entropy-analysis passes (in [1..10])

keep: ForeignKeep -> Which metadata to retain

background: &[f64] -> Background value

page_height: i32 -> Set page height for multipage save

profile: &str -> Filename of ICC profile to embed

Source

pub fn worley(width: i32, height: i32) -> Result<VipsImage>

VipsWorley (worley), make a worley noise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn worley_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsWorley (worley), make a worley noise image returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

cell_size: i32 -> Size of Worley cells

seed: i32 -> Random number seed

Source

pub fn wrap(&self) -> Result<VipsImage>

VipsWrap (wrap), wrap image origin returns VipsImage - Output image

Source

pub fn wrap_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>

VipsWrap (wrap), wrap image origin returns VipsImage - Output image

Optional arguments

x: i32 -> Left edge of input in output

y: i32 -> Top edge of input in output

Source

pub fn xyz(width: i32, height: i32) -> Result<VipsImage>

VipsXyz (xyz), make an image where pixel values are coordinates returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn xyz_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsXyz (xyz), make an image where pixel values are coordinates returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

csize: i32 -> Size of third dimension

dsize: i32 -> Size of fourth dimension

esize: i32 -> Size of fifth dimension

Source

pub fn zone(width: i32, height: i32) -> Result<VipsImage>

VipsZone (zone), make a zone plate returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Source

pub fn zone_with_opts( width: i32, height: i32, option: VOption<'_>, ) -> Result<VipsImage>

VipsZone (zone), make a zone plate returns VipsImage - Output image

width: i32 -> Image width in pixels

height: i32 -> Image height in pixels

Optional arguments

uchar: bool -> Output an unsigned char image

Source

pub fn zoom(&self, xfac: i32, yfac: i32) -> Result<VipsImage>

VipsZoom (zoom), zoom an image returns VipsImage - Output image

xfac: i32 -> Horizontal zoom factor

yfac: i32 -> Vertical zoom factor

Source

pub fn bandjoin_with(self, other: VipsImage) -> Result<VipsImage>

VipsBandjoin (bandjoin), bandwise join two images returns VipsImage - Output image

other: VipsImage -> Input images

Source

pub fn median(&self, size: i32) -> Result<VipsImage>

VipsMedian (median), median filter of the specified size.

Trait Implementations§

Source§

impl Add<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &[f64]) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &[f64]) -> Self::Output

Performs the + operation. Read more
Source§

impl<const N: usize> Add<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &[f64; N]) -> Self::Output

Performs the + operation. Read more
Source§

impl<const N: usize> Add<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &[f64; N]) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl<const N: usize> Add<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl<const N: usize> Add<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: &VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the + operator.
Source§

fn add(self, b: VipsImage) -> Self::Output

Performs the + operation. Read more
Source§

impl BitAnd<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &[f64]) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &[f64]) -> Self::Output

Performs the & operation. Read more
Source§

impl<const N: usize> BitAnd<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &[f64; N]) -> Self::Output

Performs the & operation. Read more
Source§

impl<const N: usize> BitAnd<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &[f64; N]) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl<const N: usize> BitAnd<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl<const N: usize> BitAnd<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: f64) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: f64) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: &VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the & operator.
Source§

fn bitand(self, b: VipsImage) -> Self::Output

Performs the & operation. Read more
Source§

impl BitOr<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &[f64]) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &[f64]) -> Self::Output

Performs the | operation. Read more
Source§

impl<const N: usize> BitOr<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &[f64; N]) -> Self::Output

Performs the | operation. Read more
Source§

impl<const N: usize> BitOr<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &[f64; N]) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl<const N: usize> BitOr<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl<const N: usize> BitOr<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: f64) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: f64) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: &VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the | operator.
Source§

fn bitor(self, b: VipsImage) -> Self::Output

Performs the | operation. Read more
Source§

impl BitXor<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &[f64]) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &[f64]) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const N: usize> BitXor<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &[f64; N]) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const N: usize> BitXor<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &[f64; N]) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const N: usize> BitXor<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const N: usize> BitXor<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: f64) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: f64) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: &VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, b: VipsImage) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Clone for VipsImage

Source§

fn clone(&self) -> VipsImage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VipsImage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VipsImage

Source§

fn default() -> VipsImage

Returns the “default value” for a type. Read more
Source§

impl Div<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &[f64]) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &[f64]) -> Self::Output

Performs the / operation. Read more
Source§

impl<const N: usize> Div<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &[f64; N]) -> Self::Output

Performs the / operation. Read more
Source§

impl<const N: usize> Div<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &[f64; N]) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl<const N: usize> Div<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl<const N: usize> Div<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: &VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the / operator.
Source§

fn div(self, b: VipsImage) -> Self::Output

Performs the / operation. Read more
Source§

impl Drop for VipsImage

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Eq<&[f64]> for VipsImage

Source§

type Output = VipsImage

Source§

fn eq(self, b: &[f64]) -> Self::Output

Source§

impl<const N: usize> Eq<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

Source§

fn eq(self, b: &[f64; N]) -> Self::Output

Source§

impl Eq<VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn eq(self, b: VipsImage) -> Self::Output

Source§

impl<const N: usize> Eq<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn eq(self, b: VipsImage) -> Self::Output

Source§

impl Eq<VipsImage> for VipsImage

Source§

type Output = VipsImage

Source§

fn eq(self, b: VipsImage) -> Self::Output

Source§

impl Eq<VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn eq(self, b: VipsImage) -> Self::Output

Source§

impl Eq<f64> for VipsImage

Source§

type Output = VipsImage

Source§

fn eq(self, b: f64) -> Self::Output

Source§

impl From<*mut _VipsImage> for VipsImage

Source§

fn from(value: *mut VipsImage) -> Self

Converts to this type from the input type.
Source§

impl Ge<&[f64]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: &[f64]) -> Self::Output

Source§

impl Ge<&[f64]> for VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: &[f64]) -> Self::Output

Source§

impl<const N: usize> Ge<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: &[f64; N]) -> Self::Output

Source§

impl<const N: usize> Ge<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: &[f64; N]) -> Self::Output

Source§

impl Ge<&VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn ge(self, b: &VipsImage) -> Self::Output

Source§

impl<const N: usize> Ge<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn ge(self, b: &VipsImage) -> Self::Output

Source§

impl Ge<&VipsImage> for &VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: &VipsImage) -> Self::Output

Source§

impl Ge<&VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn ge(self, b: &VipsImage) -> Self::Output

Source§

impl Ge<VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn ge(self, b: VipsImage) -> Self::Output

Source§

impl<const N: usize> Ge<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn ge(self, b: VipsImage) -> Self::Output

Source§

impl Ge<VipsImage> for VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: VipsImage) -> Self::Output

Source§

impl Ge<VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn ge(self, b: VipsImage) -> Self::Output

Source§

impl Ge<f64> for &VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: f64) -> Self::Output

Source§

impl Ge<f64> for VipsImage

Source§

type Output = VipsImage

Source§

fn ge(self, b: f64) -> Self::Output

Source§

impl Gt<&[f64]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: &[f64]) -> Self::Output

Source§

impl Gt<&[f64]> for VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: &[f64]) -> Self::Output

Source§

impl<const N: usize> Gt<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: &[f64; N]) -> Self::Output

Source§

impl<const N: usize> Gt<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: &[f64; N]) -> Self::Output

Source§

impl Gt<&VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn gt(self, b: &VipsImage) -> Self::Output

Source§

impl<const N: usize> Gt<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn gt(self, b: &VipsImage) -> Self::Output

Source§

impl Gt<&VipsImage> for &VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: &VipsImage) -> Self::Output

Source§

impl Gt<&VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn gt(self, b: &VipsImage) -> Self::Output

Source§

impl Gt<VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn gt(self, b: VipsImage) -> Self::Output

Source§

impl<const N: usize> Gt<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn gt(self, b: VipsImage) -> Self::Output

Source§

impl Gt<VipsImage> for VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: VipsImage) -> Self::Output

Source§

impl Gt<VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn gt(self, b: VipsImage) -> Self::Output

Source§

impl Gt<f64> for &VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: f64) -> Self::Output

Source§

impl Gt<f64> for VipsImage

Source§

type Output = VipsImage

Source§

fn gt(self, b: f64) -> Self::Output

Source§

impl Index<i32> for VipsImage

Source§

type Output = VipsImage

Source§

fn at(&self, index: i32) -> Self::Output

Source§

impl Le<&[f64]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: &[f64]) -> Self::Output

Source§

impl Le<&[f64]> for VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: &[f64]) -> Self::Output

Source§

impl<const N: usize> Le<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: &[f64; N]) -> Self::Output

Source§

impl<const N: usize> Le<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: &[f64; N]) -> Self::Output

Source§

impl Le<&VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn le(self, b: &VipsImage) -> Self::Output

Source§

impl<const N: usize> Le<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn le(self, b: &VipsImage) -> Self::Output

Source§

impl Le<&VipsImage> for &VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: &VipsImage) -> Self::Output

Source§

impl Le<&VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn le(self, b: &VipsImage) -> Self::Output

Source§

impl Le<VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn le(self, b: VipsImage) -> Self::Output

Source§

impl<const N: usize> Le<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn le(self, b: VipsImage) -> Self::Output

Source§

impl Le<VipsImage> for VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: VipsImage) -> Self::Output

Source§

impl Le<VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn le(self, b: VipsImage) -> Self::Output

Source§

impl Le<f64> for &VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: f64) -> Self::Output

Source§

impl Le<f64> for VipsImage

Source§

type Output = VipsImage

Source§

fn le(self, b: f64) -> Self::Output

Source§

impl Lt<&[f64]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: &[f64]) -> Self::Output

Source§

impl Lt<&[f64]> for VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: &[f64]) -> Self::Output

Source§

impl<const N: usize> Lt<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: &[f64; N]) -> Self::Output

Source§

impl<const N: usize> Lt<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: &[f64; N]) -> Self::Output

Source§

impl Lt<&VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn lt(self, b: &VipsImage) -> Self::Output

Source§

impl<const N: usize> Lt<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn lt(self, b: &VipsImage) -> Self::Output

Source§

impl Lt<&VipsImage> for &VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: &VipsImage) -> Self::Output

Source§

impl Lt<&VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn lt(self, b: &VipsImage) -> Self::Output

Source§

impl Lt<VipsImage> for &[f64]

Source§

type Output = VipsImage

Source§

fn lt(self, b: VipsImage) -> Self::Output

Source§

impl<const N: usize> Lt<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

Source§

fn lt(self, b: VipsImage) -> Self::Output

Source§

impl Lt<VipsImage> for VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: VipsImage) -> Self::Output

Source§

impl Lt<VipsImage> for f64

Source§

type Output = VipsImage

Source§

fn lt(self, b: VipsImage) -> Self::Output

Source§

impl Lt<f64> for &VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: f64) -> Self::Output

Source§

impl Lt<f64> for VipsImage

Source§

type Output = VipsImage

Source§

fn lt(self, b: f64) -> Self::Output

Source§

impl Mul<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &[f64]) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &[f64]) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &[f64; N]) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &[f64; N]) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: &VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the * operator.
Source§

fn mul(self, b: VipsImage) -> Self::Output

Performs the * operation. Read more
Source§

impl Rem<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the % operator.
Source§

fn rem(self, b: &[f64]) -> Self::Output

Performs the % operation. Read more
Source§

impl<const N: usize> Rem<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the % operator.
Source§

fn rem(self, b: &[f64; N]) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the % operator.
Source§

fn rem(self, b: f64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the % operator.
Source§

fn rem(self, b: VipsImage) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a> Setter<'a, &'a VipsImage> for VOption<'a>

Source§

fn set(self, name: &str, value: &'a VipsImage) -> VOption<'a>

Source§

fn add(&mut self, name: &str, value: &'a VipsImage)

Source§

impl<'a> Setter<'a, &'a mut VipsImage> for VOption<'a>

Source§

fn set(self, name: &str, value: &'a mut VipsImage) -> VOption<'a>

Source§

fn add(&mut self, name: &str, value: &'a mut VipsImage)

Source§

impl Shl<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: &[f64]) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: &[f64]) -> Self::Output

Performs the << operation. Read more
Source§

impl<const N: usize> Shl<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: &[f64; N]) -> Self::Output

Performs the << operation. Read more
Source§

impl<const N: usize> Shl<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: &[f64; N]) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: f64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: f64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: &VipsImage) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the << operator.
Source§

fn shl(self, b: VipsImage) -> Self::Output

Performs the << operation. Read more
Source§

impl Shr<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: &[f64]) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: &[f64]) -> Self::Output

Performs the >> operation. Read more
Source§

impl<const N: usize> Shr<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: &[f64; N]) -> Self::Output

Performs the >> operation. Read more
Source§

impl<const N: usize> Shr<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: &[f64; N]) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: f64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: f64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: &VipsImage) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the >> operator.
Source§

fn shr(self, b: VipsImage) -> Self::Output

Performs the >> operation. Read more
Source§

impl Sub<&[f64]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &[f64]) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&[f64]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &[f64]) -> Self::Output

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<&[f64; N]> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &[f64; N]) -> Self::Output

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<&[f64; N]> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &[f64; N]) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<&VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<VipsImage> for &[f64]

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<VipsImage> for &[f64; N]

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<VipsImage> for f64

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for &VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: &VipsImage) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for VipsImage

Source§

type Output = VipsImage

The resulting type after applying the - operator.
Source§

fn sub(self, b: VipsImage) -> Self::Output

Performs the - operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,