pub struct MagicksaveOptions {
pub format: String,
pub quality: i32,
pub optimize_gif_frames: bool,
pub optimize_gif_transparency: bool,
pub bitdepth: i32,
pub keep: ForeignKeep,
pub background: Vec<f64>,
pub page_height: i32,
pub profile: String,
}Expand description
Options for magicksave operation
Fields§
§format: Stringformat: String -> Format to save in
quality: i32quality: i32 -> Quality to use
min: 0, max: 100, default: 0
optimize_gif_frames: booloptimize_gif_frames: bool -> Apply GIF frames optimization
default: false
optimize_gif_transparency: booloptimize_gif_transparency: bool -> Apply GIF transparency optimization
default: false
bitdepth: i32bitdepth: i32 -> Number of bits per pixel
min: 0, max: 8, default: 0
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: 10000000, default: 0
profile: Stringprofile: String -> Filename of ICC profile to embed
Trait Implementations§
Source§impl Clone for MagicksaveOptions
impl Clone for MagicksaveOptions
Source§fn clone(&self) -> MagicksaveOptions
fn clone(&self) -> MagicksaveOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more