pub struct GifsaveTargetOptions {
pub dither: f64,
pub effort: i32,
pub bitdepth: i32,
pub interframe_maxerror: f64,
pub reuse: bool,
pub interpalette_maxerror: f64,
pub interlace: bool,
pub keep_duplicate_frames: bool,
pub keep: ForeignKeep,
pub background: Vec<f64>,
pub page_height: i32,
pub profile: String,
}Expand description
Options for gifsave_target operation
Fields§
§dither: f64dither: f64 -> Amount of dithering
min: 0, max: 1, default: 1
effort: i32effort: i32 -> Quantisation effort
min: 1, max: 10, default: 7
bitdepth: i32bitdepth: i32 -> Number of bits per pixel
min: 1, max: 8, default: 8
interframe_maxerror: f64interframe_maxerror: f64 -> Maximum inter-frame error for transparency
min: 0, max: 32, default: 0
reuse: boolreuse: bool -> Reuse palette from input
default: false
interpalette_maxerror: f64interpalette_maxerror: f64 -> Maximum inter-palette error for palette reusage
min: 0, max: 256, default: 3
interlace: boolinterlace: bool -> Generate an interlaced (progressive) GIF
default: false
keep_duplicate_frames: boolkeep_duplicate_frames: bool -> Keep duplicate frames in the output instead of combining them
default: false
keep: ForeignKeepkeep: ForeignKeep -> Which metadata to retain
None -> VIPS_FOREIGN_KEEP_NONE = 0
Exif -> VIPS_FOREIGN_KEEP_EXIF = 1
Xmp -> VIPS_FOREIGN_KEEP_XMP = 2
Iptc -> VIPS_FOREIGN_KEEP_IPTC = 4
Icc -> VIPS_FOREIGN_KEEP_ICC = 8
Other -> VIPS_FOREIGN_KEEP_OTHER = 16
All -> VIPS_FOREIGN_KEEP_ALL = 31 [DEFAULT]
background: Vec<f64>background: Vec<f64> -> Background value
page_height: i32page_height: i32 -> Set page height for multipage save
min: 0, max: 100000000, default: 0
profile: Stringprofile: String -> Filename of ICC profile to embed
Trait Implementations§
Source§impl Clone for GifsaveTargetOptions
impl Clone for GifsaveTargetOptions
Source§fn clone(&self) -> GifsaveTargetOptions
fn clone(&self) -> GifsaveTargetOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GifsaveTargetOptions
impl Debug for GifsaveTargetOptions
Auto Trait Implementations§
impl Freeze for GifsaveTargetOptions
impl RefUnwindSafe for GifsaveTargetOptions
impl Send for GifsaveTargetOptions
impl Sync for GifsaveTargetOptions
impl Unpin for GifsaveTargetOptions
impl UnwindSafe for GifsaveTargetOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)