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.
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.
pub fn new() -> VipsImage
pub fn new_memory() -> Result<VipsImage>
pub fn new_from_file<P: AsRef<Path>>(filename: P) -> Result<VipsImage>
pub fn new_from_file_with_opts<P: AsRef<Path>>( filename: P, option: VOption<'_>, ) -> Result<VipsImage>
pub fn new_from_file_rw<P: AsRef<Path>>(filename: P) -> Result<VipsImage>
pub fn new_from_file_raw<P: AsRef<Path>>( filename: P, x_size: i32, y_size: i32, bands: i32, offset: u64, ) -> Result<VipsImage>
pub fn new_from_file_access<P: AsRef<Path>>( filename: P, access: Access, memory: bool, ) -> Result<VipsImage>
pub fn new_from_buffer(buffer: &[u8], option_str: &str) -> Result<VipsImage>
pub fn new_from_buffer_with_opts( buffer: &[u8], option_str: &str, option: VOption<'_>, ) -> Result<VipsImage>
pub fn new_from_source( source: &VipsSource, option_str: &str, ) -> Result<VipsImage>
pub fn new_from_source_with_opts( source: &VipsSource, option_str: &str, option: VOption<'_>, ) -> Result<VipsImage>
pub fn new_from_memory( buffer: &[u8], width: i32, height: i32, bands: i32, format: BandFormat, ) -> Result<VipsImage>
pub fn new_matrix(width: i32, height: i32) -> Result<VipsImage>
pub fn new_matrixv(width: i32, height: i32, array: &[f64]) -> Result<VipsImage>
pub fn new_matrix_from_array( width: i32, height: i32, array: &[f64], ) -> Result<VipsImage>
pub fn new_from_image(image: &VipsImage, array: &[f64]) -> Result<VipsImage>
pub fn new_from_image1(image: &VipsImage, c: f64) -> Result<VipsImage>
pub fn new_temp_file(format: &str) -> Result<VipsImage>
pub fn copy_memory(image: VipsImage) -> Result<VipsImage>
pub fn wio_input(&mut self) -> Result<()>
pub fn get_filename(&self) -> Result<&str, Utf8Error>
pub fn get_width(&self) -> i32
pub fn get_height(&self) -> i32
pub fn get_xoffset(&self) -> i32
pub fn get_yoffset(&self) -> i32
pub fn get_scale(&self) -> f64
pub fn get_offset(&self) -> f64
pub fn get_xres(&self) -> f64
pub fn get_yres(&self) -> f64
pub fn get_bands(&self) -> i32
pub fn get_page_height(&self) -> i32
pub fn get_n_pages(&self) -> i32
pub fn get_coding(&self) -> Result<Coding>
pub fn get_format(&self) -> Result<BandFormat>
pub fn guess_format(&self) -> Result<BandFormat>
pub fn get_orientation(&self) -> i32
pub fn get_interpretation(&self) -> Result<Interpretation>
pub fn guess_interpretation(&self) -> Result<Interpretation>
pub fn set_delete_on_close(&mut self, flag: bool)
pub fn invalidate_all(&self)
pub fn minimise_all(&self)
pub fn iskilled(&self) -> bool
pub fn isMSBfirst(&self) -> bool
pub fn isfile(&self) -> bool
pub fn ispartial(&self) -> bool
pub fn hasalpha(&self) -> bool
pub fn pio_input(&mut self) -> Result<()>
pub fn pio_output(&mut self) -> Result<()>
pub fn inplace(&self) -> Result<()>
pub fn set_kill(&self, flag: bool)
pub fn set_progress(&self, flag: bool)
pub fn write(&self) -> Result<VipsImage>
pub fn write_to_file<P: AsRef<Path>>(&self, filename: P) -> Result<()>
pub fn write_to_file_with_opts<P: AsRef<Path>>( &self, filename: P, option: VOption<'_>, ) -> Result<()>
pub fn write_prepare(&self) -> Result<()>
pub fn write_to_buffer(&self, suffix: &str) -> Result<Vec<u8>>
pub fn write_to_buffer_with_opts( &self, suffix: &str, option: VOption<'_>, ) -> Result<Vec<u8>>
pub fn write_to_target(&self, suffix: &str, target: &VipsTarget) -> Result<()>
pub fn write_to_target_with_opts( &self, suffix: &str, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>
pub fn write_to_memory(&self) -> Vec<u8> ⓘ
pub fn decode_predict(&self) -> Result<(i32, BandFormat)>
pub fn decode(&self) -> Result<VipsImage>
pub fn encode(&self, coding: Coding) -> Result<VipsImage>
pub fn as_mut_ptr(&self) -> *mut VipsImage
Sourcepub fn get_typeof(&self, type_: impl AsRef<[u8]>) -> Result<u64>
pub fn get_typeof(&self, type_: impl AsRef<[u8]>) -> Result<u64>
Read the GType for a header field.
Sourcepub fn get_int(&self, name: impl AsRef<[u8]>) -> Result<i32>
pub fn get_int(&self, name: impl AsRef<[u8]>) -> Result<i32>
Gets int from image under the name.
Sourcepub fn set_int(&self, name: impl AsRef<[u8]>, value: i32) -> Result<()>
pub fn set_int(&self, name: impl AsRef<[u8]>, value: i32) -> Result<()>
Attaches int as a metadata item on image as name.
Sourcepub fn get_double(&self, name: impl AsRef<[u8]>) -> Result<f64>
pub fn get_double(&self, name: impl AsRef<[u8]>) -> Result<f64>
Gets double from image under the name.
Sourcepub fn set_double(&self, name: impl AsRef<[u8]>, value: f64) -> Result<()>
pub fn set_double(&self, name: impl AsRef<[u8]>, value: f64) -> Result<()>
Attaches double as a metadata item on image as name.
Sourcepub fn get_string(&self, name: impl AsRef<[u8]>) -> Result<String>
pub fn get_string(&self, name: impl AsRef<[u8]>) -> Result<String>
Gets string from image under the name.
Sourcepub fn set_string(&self, name: impl AsRef<[u8]>, value: &str) -> Result<()>
pub fn set_string(&self, name: impl AsRef<[u8]>, value: &str) -> Result<()>
Attaches string as a metadata item on image as name.
Sourcepub fn get_blob(&self, name: impl AsRef<[u8]>) -> Result<Vec<u8>>
pub fn get_blob(&self, name: impl AsRef<[u8]>) -> Result<Vec<u8>>
Gets data from image under the name.
Sourcepub fn set_blob(&self, name: impl AsRef<[u8]>, blob: &[u8]) -> Result<()>
pub fn set_blob(&self, name: impl AsRef<[u8]>, blob: &[u8]) -> Result<()>
Attaches data as a metadata item on image under the name.
Sourcepub fn get_array_int(&self, name: impl AsRef<[u8]>) -> Result<Vec<i32>>
pub fn get_array_int(&self, name: impl AsRef<[u8]>) -> Result<Vec<i32>>
Gets an array of int from image under the name.
Sourcepub fn set_array_int(&self, name: impl AsRef<[u8]>, value: &[i32]) -> Result<()>
pub fn set_array_int(&self, name: impl AsRef<[u8]>, value: &[i32]) -> Result<()>
Attaches array as a metadata item on image as name.
Sourcepub fn get_array_double(&self, name: impl AsRef<[u8]>) -> Result<Vec<f64>>
pub fn get_array_double(&self, name: impl AsRef<[u8]>) -> Result<Vec<f64>>
Gets an array of double from image under the name.
Sourcepub fn set_array_double(
&self,
name: impl AsRef<[u8]>,
value: &[f64],
) -> Result<()>
pub fn set_array_double( &self, name: impl AsRef<[u8]>, value: &[f64], ) -> Result<()>
Attaches array as a metadata item on image as name.
Sourcepub fn remove(&self, name: impl AsRef<[u8]>) -> Result<bool>
pub fn remove(&self, name: impl AsRef<[u8]>) -> Result<bool>
Find and remove an item of metadata.
pub fn minpos(&self) -> Result<(f64, f64)>
pub fn maxpos(&self) -> Result<(f64, f64)>
Source§impl VipsImage
impl VipsImage
Sourcepub fn CMC2LCh(&self) -> Result<VipsImage>
pub fn CMC2LCh(&self) -> Result<VipsImage>
VipsCMC2LCh (CMC2LCh), transform LCh to CMC
returns VipsImage - Output image
Sourcepub fn CMYK2XYZ(&self) -> Result<VipsImage>
pub fn CMYK2XYZ(&self) -> Result<VipsImage>
VipsCMYK2XYZ (CMYK2XYZ), transform CMYK to XYZ
returns VipsImage - Output image
Sourcepub fn HSV2sRGB(&self) -> Result<VipsImage>
pub fn HSV2sRGB(&self) -> Result<VipsImage>
VipsHSV2sRGB (HSV2sRGB), transform HSV to sRGB
returns VipsImage - Output image
Sourcepub fn LCh2CMC(&self) -> Result<VipsImage>
pub fn LCh2CMC(&self) -> Result<VipsImage>
VipsLCh2CMC (LCh2CMC), transform LCh to CMC
returns VipsImage - Output image
Sourcepub fn LCh2Lab(&self) -> Result<VipsImage>
pub fn LCh2Lab(&self) -> Result<VipsImage>
VipsLCh2Lab (LCh2Lab), transform LCh to Lab
returns VipsImage - Output image
Sourcepub fn Lab2LCh(&self) -> Result<VipsImage>
pub fn Lab2LCh(&self) -> Result<VipsImage>
VipsLab2LCh (Lab2LCh), transform Lab to LCh
returns VipsImage - Output image
Sourcepub fn Lab2LabQ(&self) -> Result<VipsImage>
pub fn Lab2LabQ(&self) -> Result<VipsImage>
VipsLab2LabQ (Lab2LabQ), transform float Lab to LabQ coding
returns VipsImage - Output image
Sourcepub fn Lab2LabS(&self) -> Result<VipsImage>
pub fn Lab2LabS(&self) -> Result<VipsImage>
VipsLab2LabS (Lab2LabS), transform float Lab to signed short
returns VipsImage - Output image
Sourcepub fn Lab2XYZ(&self) -> Result<VipsImage>
pub fn Lab2XYZ(&self) -> Result<VipsImage>
VipsLab2XYZ (Lab2XYZ), transform CIELAB to XYZ
returns VipsImage - Output image
Sourcepub fn Lab2XYZ_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn LabQ2Lab(&self) -> Result<VipsImage>
pub fn LabQ2Lab(&self) -> Result<VipsImage>
VipsLabQ2Lab (LabQ2Lab), unpack a LabQ image to float Lab
returns VipsImage - Output image
Sourcepub fn LabQ2LabS(&self) -> Result<VipsImage>
pub fn LabQ2LabS(&self) -> Result<VipsImage>
VipsLabQ2LabS (LabQ2LabS), unpack a LabQ image to short Lab
returns VipsImage - Output image
Sourcepub fn LabQ2sRGB(&self) -> Result<VipsImage>
pub fn LabQ2sRGB(&self) -> Result<VipsImage>
VipsLabQ2sRGB (LabQ2sRGB), convert a LabQ image to sRGB
returns VipsImage - Output image
Sourcepub fn LabS2Lab(&self) -> Result<VipsImage>
pub fn LabS2Lab(&self) -> Result<VipsImage>
VipsLabS2Lab (LabS2Lab), transform signed short Lab to float
returns VipsImage - Output image
Sourcepub fn LabS2LabQ(&self) -> Result<VipsImage>
pub fn LabS2LabQ(&self) -> Result<VipsImage>
VipsLabS2LabQ (LabS2LabQ), transform short Lab to LabQ coding
returns VipsImage - Output image
Sourcepub fn XYZ2CMYK(&self) -> Result<VipsImage>
pub fn XYZ2CMYK(&self) -> Result<VipsImage>
VipsXYZ2CMYK (XYZ2CMYK), transform XYZ to CMYK
returns VipsImage - Output image
Sourcepub fn XYZ2Lab(&self) -> Result<VipsImage>
pub fn XYZ2Lab(&self) -> Result<VipsImage>
VipsXYZ2Lab (XYZ2Lab), transform XYZ to Lab
returns VipsImage - Output image
Sourcepub fn XYZ2Lab_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn XYZ2Yxy(&self) -> Result<VipsImage>
pub fn XYZ2Yxy(&self) -> Result<VipsImage>
VipsXYZ2Yxy (XYZ2Yxy), transform XYZ to Yxy
returns VipsImage - Output image
Sourcepub fn XYZ2scRGB(&self) -> Result<VipsImage>
pub fn XYZ2scRGB(&self) -> Result<VipsImage>
VipsXYZ2scRGB (XYZ2scRGB), transform XYZ to scRGB
returns VipsImage - Output image
Sourcepub fn Yxy2XYZ(&self) -> Result<VipsImage>
pub fn Yxy2XYZ(&self) -> Result<VipsImage>
VipsYxy2XYZ (Yxy2XYZ), transform Yxy to XYZ
returns VipsImage - Output image
Sourcepub fn abs(&self) -> Result<VipsImage>
pub fn abs(&self) -> Result<VipsImage>
VipsAbs (abs), absolute value of an image
returns VipsImage - Output image
Sourcepub fn add(&self, right: &VipsImage) -> Result<VipsImage>
pub fn add(&self, right: &VipsImage) -> Result<VipsImage>
VipsAdd (add), add two images
returns VipsImage - Output image
right: &VipsImage -> Right-hand image argument
Sourcepub fn addalpha(&self) -> Result<VipsImage>
pub fn addalpha(&self) -> Result<VipsImage>
VipsAddAlpha (addalpha), append an alpha channel
returns VipsImage - Output image
Sourcepub fn affine(&self, matrix: &[f64]) -> Result<VipsImage>
pub fn affine(&self, matrix: &[f64]) -> Result<VipsImage>
VipsAffine (affine), affine transform of an image
returns VipsImage - Output image
matrix: &[f64] -> Transformation matrix
Sourcepub fn affine_with_opts(
&self,
matrix: &[f64],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn analyzeload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn analyzeload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn arrayjoin(inp: &[VipsImage]) -> Result<VipsImage>
pub fn arrayjoin(inp: &[VipsImage]) -> Result<VipsImage>
VipsArrayjoin (arrayjoin), join an array of images
returns VipsImage - Output image
inp: &[VipsImage] -> Array of input images
Sourcepub fn arrayjoin_with_opts(
inp: &[VipsImage],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn autorot(&self) -> Result<VipsImage>
pub fn autorot(&self) -> Result<VipsImage>
VipsAutorot (autorot), autorotate image by exif tag
returns VipsImage - Output image
Sourcepub fn autorot_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn bandbool(&self, boolean: OperationBoolean) -> Result<VipsImage>
pub fn bandbool(&self, boolean: OperationBoolean) -> Result<VipsImage>
VipsBandbool (bandbool), boolean operation across image bands
returns VipsImage - Output image
boolean: OperationBoolean -> Boolean to perform
Sourcepub fn bandfold(&self) -> Result<VipsImage>
pub fn bandfold(&self) -> Result<VipsImage>
VipsBandfold (bandfold), fold up x axis into bands
returns VipsImage - Output image
Sourcepub fn bandfold_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn bandjoin(inp: &[VipsImage]) -> Result<VipsImage>
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
Sourcepub fn bandjoin_const(&self, c: &[f64]) -> Result<VipsImage>
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
Sourcepub fn bandmean(&self) -> Result<VipsImage>
pub fn bandmean(&self) -> Result<VipsImage>
VipsBandmean (bandmean), band-wise average
returns VipsImage - Output image
Sourcepub fn bandrank(inp: &[VipsImage]) -> Result<VipsImage>
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
Sourcepub fn bandrank_with_opts(
inp: &[VipsImage],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn bandunfold(&self) -> Result<VipsImage>
pub fn bandunfold(&self) -> Result<VipsImage>
VipsBandunfold (bandunfold), unfold image bands into x axis
returns VipsImage - Output image
Sourcepub fn bandunfold_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn black(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn black_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn boolean(
&self,
right: &VipsImage,
boolean: OperationBoolean,
) -> Result<VipsImage>
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
Sourcepub fn boolean_const(
&self,
boolean: OperationBoolean,
c: &[f64],
) -> Result<VipsImage>
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
Sourcepub fn buildlut(&self) -> Result<VipsImage>
pub fn buildlut(&self) -> Result<VipsImage>
VipsBuildlut (buildlut), build a look-up table
returns VipsImage - Output image
Sourcepub fn byteswap(&self) -> Result<VipsImage>
pub fn byteswap(&self) -> Result<VipsImage>
VipsByteswap (byteswap), byteswap an image
returns VipsImage - Output image
Sourcepub fn canny(&self) -> Result<VipsImage>
pub fn canny(&self) -> Result<VipsImage>
VipsCanny (canny), Canny edge detector
returns VipsImage - Output image
Sourcepub fn canny_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn case(&self, cases: &[VipsImage]) -> Result<VipsImage>
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
Sourcepub fn cast(&self, format: BandFormat) -> Result<VipsImage>
pub fn cast(&self, format: BandFormat) -> Result<VipsImage>
VipsCast (cast), cast an image
returns VipsImage - Output image
format: BandFormat -> Format to cast to
Sourcepub fn cast_with_opts(
&self,
format: BandFormat,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn clamp(&self) -> Result<VipsImage>
pub fn clamp(&self) -> Result<VipsImage>
VipsClamp (clamp), clamp values of an image
returns VipsImage - Output image
Sourcepub fn clamp_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn colourspace(&self, space: Interpretation) -> Result<VipsImage>
pub fn colourspace(&self, space: Interpretation) -> Result<VipsImage>
VipsColourspace (colourspace), convert to a new colorspace
returns VipsImage - Output image
space: Interpretation -> Destination color space
Sourcepub fn colourspace_with_opts(
&self,
space: Interpretation,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn compass(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn compass(&self, mask: &VipsImage) -> Result<VipsImage>
VipsCompass (compass), convolve with rotating mask
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn compass_with_opts(
&self,
mask: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn complex2(
&self,
right: &VipsImage,
cmplx: OperationComplex2,
) -> Result<VipsImage>
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
Sourcepub fn complex(&self, cmplx: OperationComplex) -> Result<VipsImage>
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
Sourcepub fn complexform(&self, right: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn complexget(&self, get: OperationComplexget) -> Result<VipsImage>
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
Sourcepub fn composite2(
&self,
overlay: &VipsImage,
mode: BlendMode,
) -> Result<VipsImage>
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
Sourcepub fn composite2_with_opts(
&self,
overlay: &VipsImage,
mode: BlendMode,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn composite(inp: &[VipsImage], mode: &[i32]) -> Result<VipsImage>
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
Sourcepub fn composite_with_opts(
inp: &[VipsImage],
mode: &[i32],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn conv(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn conv(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConv (conv), convolution operation
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn conv_with_opts(
&self,
mask: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn conva(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn conva(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConva (conva), approximate integer convolution
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn conva_with_opts(
&self,
mask: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn convasep(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn convasep(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConvasep (convasep), approximate separable integer convolution
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn convasep_with_opts(
&self,
mask: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn convf(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn convf(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConvf (convf), float convolution operation
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn convi(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn convi(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConvi (convi), int convolution operation
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn convsep(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn convsep(&self, mask: &VipsImage) -> Result<VipsImage>
VipsConvsep (convsep), separable convolution operation
returns VipsImage - Output image
mask: &VipsImage -> Input matrix image
Sourcepub fn convsep_with_opts(
&self,
mask: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn copy(&self) -> Result<VipsImage>
pub fn copy(&self) -> Result<VipsImage>
VipsCopy (copy), copy an image
returns VipsImage - Output image
Sourcepub fn copy_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn countlines(&self, direction: Direction) -> Result<f64>
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
Sourcepub fn csvload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn csvload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn csvload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn csvload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn csvsave(&self, filename: &str) -> Result<()>
pub fn csvsave(&self, filename: &str) -> Result<()>
VipsForeignSaveCsvFile (csvsave), save image to csv (.csv), priority=0, mono
filename: &str -> Filename to save to
Sourcepub fn csvsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn csvsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn csvsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn dE00(&self, right: &VipsImage) -> Result<VipsImage>
pub fn dE00(&self, right: &VipsImage) -> Result<VipsImage>
VipsdE00 (dE00), calculate dE00
returns VipsImage - Output image
right: &VipsImage -> Right-hand input image
Sourcepub fn dE76(&self, right: &VipsImage) -> Result<VipsImage>
pub fn dE76(&self, right: &VipsImage) -> Result<VipsImage>
VipsdE76 (dE76), calculate dE76
returns VipsImage - Output image
right: &VipsImage -> Right-hand input image
Sourcepub fn dECMC(&self, right: &VipsImage) -> Result<VipsImage>
pub fn dECMC(&self, right: &VipsImage) -> Result<VipsImage>
VipsdECMC (dECMC), calculate dECMC
returns VipsImage - Output image
right: &VipsImage -> Right-hand input image
Sourcepub fn deviate(&self) -> Result<f64>
pub fn deviate(&self) -> Result<f64>
VipsDeviate (deviate), find image standard deviation
returns f64 - Output value
Sourcepub fn divide(&self, right: &VipsImage) -> Result<VipsImage>
pub fn divide(&self, right: &VipsImage) -> Result<VipsImage>
VipsDivide (divide), divide two images
returns VipsImage - Output image
right: &VipsImage -> Right-hand image argument
Sourcepub fn draw_circle(
&self,
ink: &[f64],
cx: i32,
cy: i32,
radius: i32,
) -> Result<()>
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
Sourcepub fn draw_circle_with_opts(
&self,
ink: &[f64],
cx: i32,
cy: i32,
radius: i32,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn draw_flood(&self, ink: &[f64], x: i32, y: i32) -> Result<()>
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
Sourcepub fn draw_flood_with_opts(
&self,
ink: &[f64],
x: i32,
y: i32,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn draw_image(&self, sub: &VipsImage, x: i32, y: i32) -> Result<()>
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
Sourcepub fn draw_image_with_opts(
&self,
sub: &VipsImage,
x: i32,
y: i32,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn draw_line(
&self,
ink: &[f64],
x1: i32,
y1: i32,
x2: i32,
y2: i32,
) -> Result<()>
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
Sourcepub fn draw_mask(
&self,
ink: &[f64],
mask: &VipsImage,
x: i32,
y: i32,
) -> Result<()>
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
Sourcepub fn draw_rect(
&self,
ink: &[f64],
left: i32,
top: i32,
width: i32,
height: i32,
) -> Result<()>
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
Sourcepub fn draw_rect_with_opts(
&self,
ink: &[f64],
left: i32,
top: i32,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn draw_smudge(
&self,
left: i32,
top: i32,
width: i32,
height: i32,
) -> Result<()>
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
Sourcepub fn dzsave(&self, filename: &str) -> Result<()>
pub fn dzsave(&self, filename: &str) -> Result<()>
VipsForeignSaveDzFile (dzsave), save image to deepzoom file (.dz, .szi), priority=0,
filename: &str -> Filename to save to
Sourcepub fn dzsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn dzsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn dzsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn dzsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn dzsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn embed(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
) -> Result<VipsImage>
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
Sourcepub fn embed_with_opts(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn extract_area(
&self,
left: i32,
top: i32,
width: i32,
height: i32,
) -> Result<VipsImage>
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
Sourcepub fn crop(
&self,
left: i32,
top: i32,
width: i32,
height: i32,
) -> Result<VipsImage>
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
Sourcepub fn extract_band(&self, band: i32) -> Result<VipsImage>
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
Sourcepub fn extract_band_with_opts(
&self,
band: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn eye(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn eye_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn falsecolour(&self) -> Result<VipsImage>
pub fn falsecolour(&self) -> Result<VipsImage>
VipsFalsecolour (falsecolour), false-color an image
returns VipsImage - Output image
Sourcepub fn fastcor(&self, refp: &VipsImage) -> Result<VipsImage>
pub fn fastcor(&self, refp: &VipsImage) -> Result<VipsImage>
VipsFastcor (fastcor), fast correlation
returns VipsImage - Output image
refp: &VipsImage -> Input reference image
Sourcepub fn fill_nearest(&self) -> Result<VipsImage>
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
Sourcepub fn fill_nearest_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn find_trim(&self) -> Result<(i32, i32, i32, i32)>
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 )
Sourcepub fn find_trim_with_opts(
&self,
option: VOption<'_>,
) -> Result<(i32, i32, i32, i32)>
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
Sourcepub fn fitsload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn fitsload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn fitsload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn fitsload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn fitssave(&self, filename: &str) -> Result<()>
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
Sourcepub fn fitssave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn flatten(&self) -> Result<VipsImage>
pub fn flatten(&self) -> Result<VipsImage>
VipsFlatten (flatten), flatten alpha out of an image
returns VipsImage - Output image
Sourcepub fn flatten_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn flip(&self, direction: Direction) -> Result<VipsImage>
pub fn flip(&self, direction: Direction) -> Result<VipsImage>
VipsFlip (flip), flip an image
returns VipsImage - Output image
direction: Direction -> Direction to flip image
Sourcepub fn float2rad(&self) -> Result<VipsImage>
pub fn float2rad(&self) -> Result<VipsImage>
VipsFloat2rad (float2rad), transform float RGB to Radiance coding
returns VipsImage - Output image
Sourcepub fn fractsurf(
width: i32,
height: i32,
fractal_dimension: f64,
) -> Result<VipsImage>
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
Sourcepub fn freqmult(&self, mask: &VipsImage) -> Result<VipsImage>
pub fn freqmult(&self, mask: &VipsImage) -> Result<VipsImage>
VipsFreqmult (freqmult), frequency-domain filtering
returns VipsImage - Output image
mask: &VipsImage -> Input mask image
Sourcepub fn fwfft(&self) -> Result<VipsImage>
pub fn fwfft(&self) -> Result<VipsImage>
VipsFwfft (fwfft), forward FFT
returns VipsImage - Output image
Sourcepub fn gamma(&self) -> Result<VipsImage>
pub fn gamma(&self) -> Result<VipsImage>
VipsGamma (gamma), gamma an image
returns VipsImage - Output image
Sourcepub fn gamma_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn gaussblur(&self, sigma: f64) -> Result<VipsImage>
pub fn gaussblur(&self, sigma: f64) -> Result<VipsImage>
VipsGaussblur (gaussblur), gaussian blur
returns VipsImage - Output image
sigma: f64 -> Sigma of Gaussian
Sourcepub fn gaussblur_with_opts(
&self,
sigma: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn gaussmat(sigma: f64, min_ampl: f64) -> Result<VipsImage>
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
Sourcepub fn gaussmat_with_opts(
sigma: f64,
min_ampl: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn gaussnoise(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn gaussnoise_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn getpoint(&self, x: i32, y: i32) -> Result<Vec<f64>>
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
Sourcepub fn getpoint_with_opts(
&self,
x: i32,
y: i32,
option: VOption<'_>,
) -> Result<Vec<f64>>
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
Sourcepub fn gifload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn gifload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn gifload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn gifload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn gifload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn gifload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn gifsave(&self, filename: &str) -> Result<()>
pub fn gifsave(&self, filename: &str) -> Result<()>
VipsForeignSaveCgifFile (gifsave), save as gif (.gif), priority=0, rgb alpha
filename: &str -> Filename to save to
Sourcepub fn gifsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn gifsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn gifsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn gifsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn gifsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn globalbalance(&self) -> Result<VipsImage>
pub fn globalbalance(&self) -> Result<VipsImage>
VipsGlobalbalance (globalbalance), global balance an image mosaic
returns VipsImage - Output image
Sourcepub fn globalbalance_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn gravity(
&self,
direction: CompassDirection,
width: i32,
height: i32,
) -> Result<VipsImage>
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
Sourcepub fn gravity_with_opts(
&self,
direction: CompassDirection,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn grey(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn grey_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn grid(
&self,
tile_height: i32,
across: i32,
down: i32,
) -> Result<VipsImage>
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
Sourcepub fn heifload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn heifload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn heifload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn heifload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn heifload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn heifload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn heifsave(&self, filename: &str) -> Result<()>
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
Sourcepub fn heifsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn heifsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn heifsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn heifsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn heifsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn hist_cum(&self) -> Result<VipsImage>
pub fn hist_cum(&self) -> Result<VipsImage>
VipsHistCum (hist_cum), form cumulative histogram
returns VipsImage - Output image
Sourcepub fn hist_entropy(&self) -> Result<f64>
pub fn hist_entropy(&self) -> Result<f64>
VipsHistEntropy (hist_entropy), estimate image entropy
returns f64 - Output value
Sourcepub fn hist_equal(&self) -> Result<VipsImage>
pub fn hist_equal(&self) -> Result<VipsImage>
VipsHistEqual (hist_equal), histogram equalisation
returns VipsImage - Output image
Sourcepub fn hist_equal_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn hist_find(&self) -> Result<VipsImage>
pub fn hist_find(&self) -> Result<VipsImage>
VipsHistFind (hist_find), find image histogram
returns VipsImage - Output histogram
Sourcepub fn hist_find_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn hist_find_indexed(&self, index: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn hist_find_indexed_with_opts(
&self,
index: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn hist_find_ndim(&self) -> Result<VipsImage>
pub fn hist_find_ndim(&self) -> Result<VipsImage>
VipsHistFindNDim (hist_find_ndim), find n-dimensional image histogram
returns VipsImage - Output histogram
Sourcepub fn hist_find_ndim_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn hist_ismonotonic(&self) -> Result<bool>
pub fn hist_ismonotonic(&self) -> Result<bool>
VipsHistIsmonotonic (hist_ismonotonic), test for monotonicity
returns bool - true if in is monotonic
Sourcepub fn hist_local(&self, width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn hist_local_with_opts(
&self,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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)
Sourcepub fn hist_match(&self, refp: &VipsImage) -> Result<VipsImage>
pub fn hist_match(&self, refp: &VipsImage) -> Result<VipsImage>
VipsHistMatch (hist_match), match two histograms
returns VipsImage - Output image
refp: &VipsImage -> Reference histogram
Sourcepub fn hist_norm(&self) -> Result<VipsImage>
pub fn hist_norm(&self) -> Result<VipsImage>
VipsHistNorm (hist_norm), normalise histogram
returns VipsImage - Output image
Sourcepub fn hist_plot(&self) -> Result<VipsImage>
pub fn hist_plot(&self) -> Result<VipsImage>
VipsHistPlot (hist_plot), plot histogram
returns VipsImage - Output image
Sourcepub fn hough_circle(&self) -> Result<VipsImage>
pub fn hough_circle(&self) -> Result<VipsImage>
VipsHoughCircle (hough_circle), find hough circle transform
returns VipsImage - Output image
Sourcepub fn hough_circle_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn hough_line(&self) -> Result<VipsImage>
pub fn hough_line(&self) -> Result<VipsImage>
VipsHoughLine (hough_line), find hough line transform
returns VipsImage - Output image
Sourcepub fn hough_line_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn icc_export(&self) -> Result<VipsImage>
pub fn icc_export(&self) -> Result<VipsImage>
VipsIccExport (icc_export), output to device with ICC profile
returns VipsImage - Output image
Sourcepub fn icc_export_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn icc_import(&self) -> Result<VipsImage>
pub fn icc_import(&self) -> Result<VipsImage>
VipsIccImport (icc_import), import from device with ICC profile
returns VipsImage - Output image
Sourcepub fn icc_import_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn icc_transform(&self, output_profile: &str) -> Result<VipsImage>
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
Sourcepub fn icc_transform_with_opts(
&self,
output_profile: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn identity() -> Result<VipsImage>
pub fn identity() -> Result<VipsImage>
VipsIdentity (identity), make a 1D image where pixel values are indexes
returns VipsImage - Output image
Sourcepub fn identity_with_opts(option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn ifthenelse(&self, in1: &VipsImage, in2: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn ifthenelse_with_opts(
&self,
in1: &VipsImage,
in2: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn insert(&self, sub: &VipsImage, x: i32, y: i32) -> Result<VipsImage>
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
Sourcepub fn insert_with_opts(
&self,
sub: &VipsImage,
x: i32,
y: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn invert(&self) -> Result<VipsImage>
pub fn invert(&self) -> Result<VipsImage>
VipsInvert (invert), invert an image
returns VipsImage - Output image
Sourcepub fn invertlut(&self) -> Result<VipsImage>
pub fn invertlut(&self) -> Result<VipsImage>
VipsInvertlut (invertlut), build an inverted look-up table
returns VipsImage - Output image
Sourcepub fn invertlut_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn invfft(&self) -> Result<VipsImage>
pub fn invfft(&self) -> Result<VipsImage>
VipsInvfft (invfft), inverse FFT
returns VipsImage - Output image
Sourcepub fn invfft_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn join(&self, in2: &VipsImage, direction: Direction) -> Result<VipsImage>
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
Sourcepub fn join_with_opts(
&self,
in2: &VipsImage,
direction: Direction,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jp2kload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn jp2kload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jp2kload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn jp2kload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jp2kload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn jp2kload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jp2ksave(&self, filename: &str) -> Result<()>
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
Sourcepub fn jp2ksave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn jp2ksave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn jp2ksave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn jp2ksave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn jp2ksave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn jpegload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn jpegload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jpegload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn jpegload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jpegload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn jpegload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jpegsave(&self, filename: &str) -> Result<()>
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
Sourcepub fn jpegsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn jpegsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn jpegsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn jpegsave_mime(&self) -> Result<()>
pub fn jpegsave_mime(&self) -> Result<()>
VipsForeignSaveJpegMime (jpegsave_mime), save image to jpeg mime (.jpg, .jpeg, .jpe, .jfif), priority=0, mono rgb cmyk
Sourcepub fn jpegsave_mime_with_opts(&self, option: VOption<'_>) -> Result<()>
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
Sourcepub fn jpegsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn jpegsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn jxlload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn jxlload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jxlload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn jxlload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jxlload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn jxlload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn jxlsave(&self, filename: &str) -> Result<()>
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
Sourcepub fn jxlsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn jxlsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn jxlsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn jxlsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn jxlsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn labelregions(&self) -> Result<VipsImage>
pub fn labelregions(&self) -> Result<VipsImage>
VipsLabelregions (labelregions), label regions in an image
returns VipsImage - Mask of region labels
Sourcepub fn labelregions_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn linear(&self, a: &[f64], b: &[f64]) -> Result<VipsImage>
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
Sourcepub fn linear_with_opts(
&self,
a: &[f64],
b: &[f64],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn linecache(&self) -> Result<VipsImage>
pub fn linecache(&self) -> Result<VipsImage>
VipsLineCache (linecache), cache an image as a set of lines
returns VipsImage - Output image
Sourcepub fn linecache_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn logmat(sigma: f64, min_ampl: f64) -> Result<VipsImage>
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
Sourcepub fn logmat_with_opts(
sigma: f64,
min_ampl: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn magickload(filename: &str) -> Result<VipsImage>
pub fn magickload(filename: &str) -> Result<VipsImage>
VipsForeignLoadMagickFile (magickload), load file with ImageMagick, priority=-100, untrusted, is_a, get_flags, get_flags_filename, header
returns VipsImage - Output image
filename: &str -> Filename to load from
Sourcepub fn magickload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
pub fn magickload_with_opts( filename: &str, option: VOption<'_>, ) -> Result<VipsImage>
VipsForeignLoadMagickFile (magickload), load file with ImageMagick, priority=-100, untrusted, is_a, get_flags, get_flags_filename, header
returns VipsImage - Output image
filename: &str -> Filename to load from
Optional arguments
density: &str -> Canvas resolution for rendering vector formats like SVG
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
Sourcepub fn magickload_buffer(buffer: &[u8]) -> Result<VipsImage>
pub fn magickload_buffer(buffer: &[u8]) -> Result<VipsImage>
VipsForeignLoadMagickBuffer (magickload_buffer), load buffer with ImageMagick, priority=-100, untrusted, is_a_buffer, get_flags, get_flags_filename, header
returns VipsImage - Output image
buffer: &[u8] -> Buffer to load from
Sourcepub fn magickload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
pub fn magickload_buffer_with_opts( buffer: &[u8], option: VOption<'_>, ) -> Result<VipsImage>
VipsForeignLoadMagickBuffer (magickload_buffer), load buffer with ImageMagick, priority=-100, untrusted, is_a_buffer, get_flags, get_flags_filename, header
returns VipsImage - Output image
buffer: &[u8] -> Buffer to load from
Optional arguments
density: &str -> Canvas resolution for rendering vector formats like SVG
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
Sourcepub fn magicksave(&self, filename: &str) -> Result<()>
pub fn magicksave(&self, filename: &str) -> Result<()>
VipsForeignSaveMagickFile (magicksave), save file with ImageMagick (), priority=-100, untrusted,
filename: &str -> Filename to save to
Sourcepub fn magicksave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
pub fn magicksave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>
VipsForeignSaveMagickFile (magicksave), save file with ImageMagick (), priority=-100, untrusted,
filename: &str -> Filename to save to
Optional arguments
format: &str -> Format to save in
quality: i32 -> Quality to use
optimize_gif_frames: bool -> Apply GIF frames optimization
optimize_gif_transparency: bool -> Apply GIF transparency optimization
bitdepth: i32 -> Number of bits per pixel
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
Sourcepub fn magicksave_buffer(&self) -> Result<Vec<u8>>
pub fn magicksave_buffer(&self) -> Result<Vec<u8>>
VipsForeignSaveMagickBuffer (magicksave_buffer), save image to magick buffer (), priority=-100, untrusted,
returns Vec<u8> - Buffer to save to
Sourcepub fn magicksave_buffer_with_opts(
&self,
option: VOption<'_>,
) -> Result<Vec<u8>>
pub fn magicksave_buffer_with_opts( &self, option: VOption<'_>, ) -> Result<Vec<u8>>
VipsForeignSaveMagickBuffer (magicksave_buffer), save image to magick buffer (), priority=-100, untrusted,
returns Vec<u8> - Buffer to save to
Optional arguments
format: &str -> Format to save in
quality: i32 -> Quality to use
optimize_gif_frames: bool -> Apply GIF frames optimization
optimize_gif_transparency: bool -> Apply GIF transparency optimization
bitdepth: i32 -> Number of bits per pixel
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
Sourcepub fn mapim(&self, index: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn mapim_with_opts(
&self,
index: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn maplut(&self, lut: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn maplut_with_opts(
&self,
lut: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_butterworth(
width: i32,
height: i32,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_butterworth_with_opts(
width: i32,
height: i32,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub 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>
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
Sourcepub 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>
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
Sourcepub fn mask_butterworth_ring(
width: i32,
height: i32,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_butterworth_ring_with_opts(
width: i32,
height: i32,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_fractal(
width: i32,
height: i32,
fractal_dimension: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_fractal_with_opts(
width: i32,
height: i32,
fractal_dimension: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_gaussian(
width: i32,
height: i32,
frequency_cutoff: f64,
amplitude_cutoff: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_gaussian_with_opts(
width: i32,
height: i32,
frequency_cutoff: f64,
amplitude_cutoff: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_gaussian_band(
width: i32,
height: i32,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
amplitude_cutoff: f64,
) -> Result<VipsImage>
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
Sourcepub 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>
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
Sourcepub fn mask_gaussian_ring(
width: i32,
height: i32,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_gaussian_ring_with_opts(
width: i32,
height: i32,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal(
width: i32,
height: i32,
frequency_cutoff: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal_with_opts(
width: i32,
height: i32,
frequency_cutoff: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal_band(
width: i32,
height: i32,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal_band_with_opts(
width: i32,
height: i32,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal_ring(
width: i32,
height: i32,
frequency_cutoff: f64,
ringwidth: f64,
) -> Result<VipsImage>
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
Sourcepub fn mask_ideal_ring_with_opts(
width: i32,
height: i32,
frequency_cutoff: f64,
ringwidth: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn matches(
&self,
sec: &VipsImage,
xr1: i32,
yr1: i32,
xs1: i32,
ys1: i32,
xr2: i32,
yr2: i32,
xs2: i32,
ys2: i32,
) -> Result<VipsImage>
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
Sourcepub 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>
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
Sourcepub fn math2(
&self,
right: &VipsImage,
math2: OperationMath2,
) -> Result<VipsImage>
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
Sourcepub fn math2_const(&self, math2: OperationMath2, c: &[f64]) -> Result<VipsImage>
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
Sourcepub fn math(&self, math: OperationMath) -> Result<VipsImage>
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
Sourcepub fn matload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn matload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn matrixinvert(&self) -> Result<VipsImage>
pub fn matrixinvert(&self) -> Result<VipsImage>
VipsMatrixinvert (matrixinvert), invert a matrix
returns VipsImage - Output matrix
Sourcepub fn matrixload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn matrixload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn matrixload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn matrixload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn matrixmultiply(&self, right: &VipsImage) -> Result<VipsImage>
pub fn matrixmultiply(&self, right: &VipsImage) -> Result<VipsImage>
VipsMatrixmultiply (matrixmultiply), multiply two matrices
returns VipsImage - Output matrix
right: &VipsImage -> Second matrix to multiply
Sourcepub fn matrixprint(&self) -> Result<()>
pub fn matrixprint(&self) -> Result<()>
VipsForeignPrintMatrix (matrixprint), print matrix (.mat), priority=0, mono
Sourcepub fn matrixprint_with_opts(&self, option: VOption<'_>) -> Result<()>
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
Sourcepub fn matrixsave(&self, filename: &str) -> Result<()>
pub fn matrixsave(&self, filename: &str) -> Result<()>
VipsForeignSaveMatrixFile (matrixsave), save image to matrix (.mat), priority=0, mono
filename: &str -> Filename to save to
Sourcepub fn matrixsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn matrixsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn matrixsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn max_with_opts(&self, option: VOption<'_>) -> Result<f64>
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
Sourcepub fn maxpair(&self, right: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn measure(&self, h: i32, v: i32) -> Result<VipsImage>
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
Sourcepub fn measure_with_opts(
&self,
h: i32,
v: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn merge(
&self,
sec: &VipsImage,
direction: Direction,
dx: i32,
dy: i32,
) -> Result<VipsImage>
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
Sourcepub fn merge_with_opts(
&self,
sec: &VipsImage,
direction: Direction,
dx: i32,
dy: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn min_with_opts(&self, option: VOption<'_>) -> Result<f64>
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
Sourcepub fn minpair(&self, right: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn morph(
&self,
mask: &VipsImage,
morph: OperationMorphology,
) -> Result<VipsImage>
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
Sourcepub 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>
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
Sourcepub 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>
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
Sourcepub fn mosaic(
&self,
sec: &VipsImage,
direction: Direction,
xref: i32,
yref: i32,
xsec: i32,
ysec: i32,
) -> Result<VipsImage>
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
Sourcepub fn mosaic_with_opts(
&self,
sec: &VipsImage,
direction: Direction,
xref: i32,
yref: i32,
xsec: i32,
ysec: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn msb(&self) -> Result<VipsImage>
pub fn msb(&self) -> Result<VipsImage>
VipsMsb (msb), pick most-significant byte from an image
returns VipsImage - Output image
Sourcepub fn msb_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn multiply(&self, right: &VipsImage) -> Result<VipsImage>
pub fn multiply(&self, right: &VipsImage) -> Result<VipsImage>
VipsMultiply (multiply), multiply two images
returns VipsImage - Output image
right: &VipsImage -> Right-hand image argument
Sourcepub fn openexrload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn openexrload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn openslideload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn openslideload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn openslideload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn openslideload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pdfload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn pdfload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pdfload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn pdfload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pdfload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn pdfload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn percent(&self, percent: f64) -> Result<i32>
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
Sourcepub fn perlin(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn perlin_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn phasecor(&self, in2: &VipsImage) -> Result<VipsImage>
pub fn phasecor(&self, in2: &VipsImage) -> Result<VipsImage>
VipsPhasecor (phasecor), calculate phase correlation
returns VipsImage - Output image
in2: &VipsImage -> Second input image
Sourcepub fn pngload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn pngload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pngload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn pngload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pngload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn pngload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn pngsave(&self, filename: &str) -> Result<()>
pub fn pngsave(&self, filename: &str) -> Result<()>
VipsForeignSaveSpngFile (pngsave), save image to file as PNG (.png), priority=0, mono rgb alpha
filename: &str -> Filename to save to
Sourcepub fn pngsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
pub fn pngsave_with_opts( &self, filename: &str, option: VOption<'_>, ) -> Result<()>
VipsForeignSaveSpngFile (pngsave), save image to file as PNG (.png), priority=0, mono rgb alpha
filename: &str -> Filename to save to
Optional arguments
compression: i32 -> Compression factor
interlace: bool -> Interlace image
filter: ForeignPngFilter -> libspng 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
Sourcepub fn pngsave_buffer(&self) -> Result<Vec<u8>>
pub fn pngsave_buffer(&self) -> Result<Vec<u8>>
VipsForeignSaveSpngBuffer (pngsave_buffer), save image to buffer as PNG (.png), priority=0, mono rgb alpha
returns Vec<u8> - Buffer to save to
Sourcepub fn pngsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
pub fn pngsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
VipsForeignSaveSpngBuffer (pngsave_buffer), save image to buffer as PNG (.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 -> libspng 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
Sourcepub fn pngsave_target(&self, target: &VipsTarget) -> Result<()>
pub fn pngsave_target(&self, target: &VipsTarget) -> Result<()>
VipsForeignSaveSpngTarget (pngsave_target), save image to target as PNG (.png), priority=0, mono rgb alpha
target: &VipsTarget -> Target to save to
Sourcepub fn pngsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
pub fn pngsave_target_with_opts( &self, target: &VipsTarget, option: VOption<'_>, ) -> Result<()>
VipsForeignSaveSpngTarget (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 -> libspng 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
Sourcepub fn ppmload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn ppmload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn ppmload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn ppmload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn ppmload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn ppmload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn ppmsave(&self, filename: &str) -> Result<()>
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
Sourcepub fn ppmsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn ppmsave_target(&self, target: &VipsTarget) -> Result<()>
pub fn ppmsave_target(&self, target: &VipsTarget) -> Result<()>
VipsForeignSavePpmTarget (ppmsave_target), save to ppm (.ppm), priority=0,
target: &VipsTarget -> Target to save to
Sourcepub fn ppmsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn premultiply(&self) -> Result<VipsImage>
pub fn premultiply(&self) -> Result<VipsImage>
VipsPremultiply (premultiply), premultiply image alpha
returns VipsImage - Output image
Sourcepub fn premultiply_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn prewitt(&self) -> Result<VipsImage>
pub fn prewitt(&self) -> Result<VipsImage>
VipsPrewitt (prewitt), Prewitt edge detector
returns VipsImage - Output image
Sourcepub fn profile(&self) -> Result<(VipsImage, VipsImage)>
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 )
Sourcepub fn profile_load(name: &str) -> Result<Vec<u8>>
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
Sourcepub fn project(&self) -> Result<(VipsImage, VipsImage)>
pub fn project(&self) -> Result<(VipsImage, VipsImage)>
VipsProject (project), find image projections Tuple ( VipsImage - Sums of columns VipsImage - Sums of rows )
Sourcepub fn quadratic(&self, coeff: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn quadratic_with_opts(
&self,
coeff: &VipsImage,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn rad2float(&self) -> Result<VipsImage>
pub fn rad2float(&self) -> Result<VipsImage>
VipsRad2float (rad2float), unpack Radiance coding to float RGB
returns VipsImage - Output image
Sourcepub fn radload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn radload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn radload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn radload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn radload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn radload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn radsave(&self, filename: &str) -> Result<()>
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
Sourcepub fn radsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn radsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn radsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn radsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn radsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn rank(&self, width: i32, height: i32, index: i32) -> Result<VipsImage>
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
Sourcepub fn rawload(
filename: &str,
width: i32,
height: i32,
bands: i32,
) -> Result<VipsImage>
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
Sourcepub fn rawload_with_opts(
filename: &str,
width: i32,
height: i32,
bands: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn rawsave(&self, filename: &str) -> Result<()>
pub fn rawsave(&self, filename: &str) -> Result<()>
VipsForeignSaveRawFile (rawsave), save image to raw file (.raw), priority=0,
filename: &str -> Filename to save to
Sourcepub fn rawsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn rawsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn rawsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn rawsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn rawsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn recomb(&self, m: &VipsImage) -> Result<VipsImage>
pub fn recomb(&self, m: &VipsImage) -> Result<VipsImage>
VipsRecomb (recomb), linear recombination with matrix
returns VipsImage - Output image
m: &VipsImage -> Matrix of coefficients
Sourcepub fn reduce(&self, hshrink: f64, vshrink: f64) -> Result<VipsImage>
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
Sourcepub fn reduce_with_opts(
&self,
hshrink: f64,
vshrink: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn reduceh(&self, hshrink: f64) -> Result<VipsImage>
pub fn reduceh(&self, hshrink: f64) -> Result<VipsImage>
VipsReduceh (reduceh), shrink an image horizontally
returns VipsImage - Output image
hshrink: f64 -> Horizontal shrink factor
Sourcepub fn reduceh_with_opts(
&self,
hshrink: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn reducev(&self, vshrink: f64) -> Result<VipsImage>
pub fn reducev(&self, vshrink: f64) -> Result<VipsImage>
VipsReducev (reducev), shrink an image vertically
returns VipsImage - Output image
vshrink: f64 -> Vertical shrink factor
Sourcepub fn reducev_with_opts(
&self,
vshrink: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn relational(
&self,
right: &VipsImage,
relational: OperationRelational,
) -> Result<VipsImage>
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
Sourcepub fn relational_const(
&self,
relational: OperationRelational,
c: &[f64],
) -> Result<VipsImage>
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
Sourcepub fn remainder(&self, right: &VipsImage) -> Result<VipsImage>
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
Sourcepub fn remainder_const(&self, c: &[f64]) -> Result<VipsImage>
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
Sourcepub fn remosaic(&self, old_str: &str, new_str: &str) -> Result<VipsImage>
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
Sourcepub fn replicate(&self, across: i32, down: i32) -> Result<VipsImage>
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
Sourcepub fn resize(&self, scale: f64) -> Result<VipsImage>
pub fn resize(&self, scale: f64) -> Result<VipsImage>
VipsResize (resize), resize an image
returns VipsImage - Output image
scale: f64 -> Scale image by this factor
Sourcepub fn resize_with_opts(
&self,
scale: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn rot45(&self) -> Result<VipsImage>
pub fn rot45(&self) -> Result<VipsImage>
VipsRot45 (rot45), rotate an image
returns VipsImage - Output image
Sourcepub fn rot45_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn rot(&self, angle: Angle) -> Result<VipsImage>
pub fn rot(&self, angle: Angle) -> Result<VipsImage>
VipsRot (rot), rotate an image
returns VipsImage - Output image
angle: Angle -> Angle to rotate image
Sourcepub fn rotate(&self, angle: f64) -> Result<VipsImage>
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
Sourcepub fn rotate_with_opts(
&self,
angle: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn round(&self, round: OperationRound) -> Result<VipsImage>
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
Sourcepub fn sRGB2HSV(&self) -> Result<VipsImage>
pub fn sRGB2HSV(&self) -> Result<VipsImage>
VipssRGB2HSV (sRGB2HSV), transform sRGB to HSV
returns VipsImage - Output image
Sourcepub fn sRGB2scRGB(&self) -> Result<VipsImage>
pub fn sRGB2scRGB(&self) -> Result<VipsImage>
VipssRGB2scRGB (sRGB2scRGB), convert an sRGB image to scRGB
returns VipsImage - Output image
Sourcepub fn scRGB2BW(&self) -> Result<VipsImage>
pub fn scRGB2BW(&self) -> Result<VipsImage>
VipsscRGB2BW (scRGB2BW), convert scRGB to BW
returns VipsImage - Output image
Sourcepub fn scRGB2BW_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn scRGB2XYZ(&self) -> Result<VipsImage>
pub fn scRGB2XYZ(&self) -> Result<VipsImage>
VipsscRGB2XYZ (scRGB2XYZ), transform scRGB to XYZ
returns VipsImage - Output image
Sourcepub fn scRGB2sRGB(&self) -> Result<VipsImage>
pub fn scRGB2sRGB(&self) -> Result<VipsImage>
VipsscRGB2sRGB (scRGB2sRGB), convert scRGB to sRGB
returns VipsImage - Output image
Sourcepub fn scRGB2sRGB_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn scale(&self) -> Result<VipsImage>
pub fn scale(&self) -> Result<VipsImage>
VipsScale (scale), scale an image to uchar
returns VipsImage - Output image
Sourcepub fn scale_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn scharr(&self) -> Result<VipsImage>
pub fn scharr(&self) -> Result<VipsImage>
VipsScharr (scharr), Scharr edge detector
returns VipsImage - Output image
Sourcepub fn sdf(width: i32, height: i32, shape: SdfShape) -> Result<VipsImage>
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
Sourcepub fn sdf_with_opts(
width: i32,
height: i32,
shape: SdfShape,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn sequential(&self) -> Result<VipsImage>
pub fn sequential(&self) -> Result<VipsImage>
VipsSequential (sequential), check sequential access
returns VipsImage - Output image
Sourcepub fn sequential_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn sharpen(&self) -> Result<VipsImage>
pub fn sharpen(&self) -> Result<VipsImage>
VipsSharpen (sharpen), unsharp masking for print
returns VipsImage - Output image
Sourcepub fn sharpen_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn shrink(&self, hshrink: f64, vshrink: f64) -> Result<VipsImage>
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
Sourcepub fn shrink_with_opts(
&self,
hshrink: f64,
vshrink: f64,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn shrinkh(&self, hshrink: i32) -> Result<VipsImage>
pub fn shrinkh(&self, hshrink: i32) -> Result<VipsImage>
VipsShrinkh (shrinkh), shrink an image horizontally
returns VipsImage - Output image
hshrink: i32 -> Horizontal shrink factor
Sourcepub fn shrinkh_with_opts(
&self,
hshrink: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn shrinkv(&self, vshrink: i32) -> Result<VipsImage>
pub fn shrinkv(&self, vshrink: i32) -> Result<VipsImage>
VipsShrinkv (shrinkv), shrink an image vertically
returns VipsImage - Output image
vshrink: i32 -> Vertical shrink factor
Sourcepub fn shrinkv_with_opts(
&self,
vshrink: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn sign(&self) -> Result<VipsImage>
pub fn sign(&self) -> Result<VipsImage>
VipsSign (sign), unit vector of pixel
returns VipsImage - Output image
Sourcepub fn similarity(&self) -> Result<VipsImage>
pub fn similarity(&self) -> Result<VipsImage>
VipsSimilarity (similarity), similarity transform of an image
returns VipsImage - Output image
Sourcepub fn similarity_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn sines(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn sines_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn smartcrop(&self, width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn smartcrop_with_opts(
&self,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn sobel(&self) -> Result<VipsImage>
pub fn sobel(&self) -> Result<VipsImage>
VipsSobel (sobel), Sobel edge detector
returns VipsImage - Output image
Sourcepub fn spcor(&self, refp: &VipsImage) -> Result<VipsImage>
pub fn spcor(&self, refp: &VipsImage) -> Result<VipsImage>
VipsSpcor (spcor), spatial correlation
returns VipsImage - Output image
refp: &VipsImage -> Input reference image
Sourcepub fn spectrum(&self) -> Result<VipsImage>
pub fn spectrum(&self) -> Result<VipsImage>
VipsSpectrum (spectrum), make displayable power spectrum
returns VipsImage - Output image
Sourcepub fn stats(&self) -> Result<VipsImage>
pub fn stats(&self) -> Result<VipsImage>
VipsStats (stats), find many image stats
returns VipsImage - Output array of statistics
Sourcepub fn stdif(&self, width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn stdif_with_opts(
&self,
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn subsample(&self, xfac: i32, yfac: i32) -> Result<VipsImage>
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
Sourcepub fn subsample_with_opts(
&self,
xfac: i32,
yfac: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn subtract(&self, right: &VipsImage) -> Result<VipsImage>
pub fn subtract(&self, right: &VipsImage) -> Result<VipsImage>
VipsSubtract (subtract), subtract two images
returns VipsImage - Output image
right: &VipsImage -> Right-hand image argument
Sourcepub fn sum(inp: &[VipsImage]) -> Result<VipsImage>
pub fn sum(inp: &[VipsImage]) -> Result<VipsImage>
VipsSum (sum), sum an array of images
returns VipsImage - Output image
inp: &[VipsImage] -> Array of input images
Sourcepub fn svgload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn svgload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn svgload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn svgload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn svgload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn svgload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn switch(tests: &[VipsImage]) -> Result<VipsImage>
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
Sourcepub fn system(cmd_format: &str) -> Result<()>
pub fn system(cmd_format: &str) -> Result<()>
VipsSystem (system), run an external command
cmd_format: &str -> Command to run
Sourcepub fn system_with_opts(cmd_format: &str, option: VOption<'_>) -> Result<()>
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
Sourcepub fn text(text: &str) -> Result<VipsImage>
pub fn text(text: &str) -> Result<VipsImage>
VipsText (text), make a text image
returns VipsImage - Output image
text: &str -> Text to render
Sourcepub fn text_with_opts(text: &str, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn thumbnail(filename: &str, width: i32) -> Result<VipsImage>
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
Sourcepub fn thumbnail_with_opts(
filename: &str,
width: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn thumbnail_buffer(buffer: &[u8], width: i32) -> Result<VipsImage>
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
Sourcepub fn thumbnail_buffer_with_opts(
buffer: &[u8],
width: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn thumbnail_image(&self, width: i32) -> Result<VipsImage>
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
Sourcepub fn thumbnail_image_with_opts(
&self,
width: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn thumbnail_source(source: &VipsSource, width: i32) -> Result<VipsImage>
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
Sourcepub fn thumbnail_source_with_opts(
source: &VipsSource,
width: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn tiffload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn tiffload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn tiffload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn tiffload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn tiffload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn tiffload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn tiffsave(&self, filename: &str) -> Result<()>
pub fn tiffsave(&self, filename: &str) -> Result<()>
VipsForeignSaveTiffFile (tiffsave), save image to tiff file (.tif, .tiff), priority=0,
filename: &str -> Filename to save to
Sourcepub fn tiffsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn tiffsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn tiffsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn tiffsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn tiffsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn tilecache(&self) -> Result<VipsImage>
pub fn tilecache(&self) -> Result<VipsImage>
VipsTileCache (tilecache), cache an image as a set of tiles
returns VipsImage - Output image
Sourcepub fn tilecache_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn tonelut() -> Result<VipsImage>
pub fn tonelut() -> Result<VipsImage>
VipsTonelut (tonelut), build a look-up table
returns VipsImage - Output image
Sourcepub fn tonelut_with_opts(option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn transpose3d(&self) -> Result<VipsImage>
pub fn transpose3d(&self) -> Result<VipsImage>
VipsTranspose3d (transpose3d), transpose3d an image
returns VipsImage - Output image
Sourcepub fn transpose3d_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn unpremultiply(&self) -> Result<VipsImage>
pub fn unpremultiply(&self) -> Result<VipsImage>
VipsUnpremultiply (unpremultiply), unpremultiply image alpha
returns VipsImage - Output image
Sourcepub fn unpremultiply_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn vipsload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn vipsload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn vipsload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn vipsload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn vipssave(&self, filename: &str) -> Result<()>
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
Sourcepub fn vipssave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn vipssave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn vipssave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn webpload(filename: &str) -> Result<VipsImage>
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
Sourcepub fn webpload_with_opts(
filename: &str,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn webpload_buffer(buffer: &[u8]) -> Result<VipsImage>
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
Sourcepub fn webpload_buffer_with_opts(
buffer: &[u8],
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn webpload_source(source: &VipsSource) -> Result<VipsImage>
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
Sourcepub fn webpload_source_with_opts(
source: &VipsSource,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn webpsave(&self, filename: &str) -> Result<()>
pub fn webpsave(&self, filename: &str) -> Result<()>
VipsForeignSaveWebpFile (webpsave), save as WebP (.webp), priority=0, rgb alpha
filename: &str -> Filename to save to
Sourcepub fn webpsave_with_opts(
&self,
filename: &str,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn webpsave_buffer(&self) -> Result<Vec<u8>>
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
Sourcepub fn webpsave_buffer_with_opts(&self, option: VOption<'_>) -> Result<Vec<u8>>
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
Sourcepub fn webpsave_mime(&self) -> Result<()>
pub fn webpsave_mime(&self) -> Result<()>
VipsForeignSaveWebpMime (webpsave_mime), save image to webp mime (.webp), priority=0, rgb alpha
Sourcepub fn webpsave_mime_with_opts(&self, option: VOption<'_>) -> Result<()>
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
Sourcepub fn webpsave_target(&self, target: &VipsTarget) -> Result<()>
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
Sourcepub fn webpsave_target_with_opts(
&self,
target: &VipsTarget,
option: VOption<'_>,
) -> Result<()>
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
Sourcepub fn worley(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn worley_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn wrap(&self) -> Result<VipsImage>
pub fn wrap(&self) -> Result<VipsImage>
VipsWrap (wrap), wrap image origin
returns VipsImage - Output image
Sourcepub fn wrap_with_opts(&self, option: VOption<'_>) -> Result<VipsImage>
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
Sourcepub fn xyz(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn xyz_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn zone(width: i32, height: i32) -> Result<VipsImage>
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
Sourcepub fn zone_with_opts(
width: i32,
height: i32,
option: VOption<'_>,
) -> Result<VipsImage>
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
Sourcepub fn zoom(&self, xfac: i32, yfac: i32) -> Result<VipsImage>
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
Sourcepub fn bandjoin_with(self, other: VipsImage) -> Result<VipsImage>
pub fn bandjoin_with(self, other: VipsImage) -> Result<VipsImage>
VipsBandjoin (bandjoin), bandwise join two images
returns VipsImage - Output image
other: VipsImage -> Input images