pub struct EncoderOptions {
pub quality: Option<u8>,
pub progressive: Option<bool>,
pub interlaced: Option<bool>,
pub indexed: Option<bool>,
pub strip: Option<bool>,
}Expand description
The named options PHP passes as ...$options (quality: 65, progressive: true, …).
Each encoder takes the options it knows and ignores the others, as PHP does.
Fields§
§quality: Option<u8>§progressive: Option<bool>§interlaced: Option<bool>§indexed: Option<bool>§strip: Option<bool>Implementations§
Source§impl EncoderOptions
impl EncoderOptions
pub fn new() -> Self
Sourcepub fn quality(self, quality: u8) -> Self
pub fn quality(self, quality: u8) -> Self
quality: 0..100, for JPEG, WebP, AVIF, TIFF, HEIC, JPEG 2000 and JPEG XL.
Sourcepub fn progressive(self, progressive: bool) -> Self
pub fn progressive(self, progressive: bool) -> Self
progressive, for JPEG.
Sourcepub fn interlaced(self, interlaced: bool) -> Self
pub fn interlaced(self, interlaced: bool) -> Self
interlaced, for PNG and GIF.
Trait Implementations§
Source§impl Clone for EncoderOptions
impl Clone for EncoderOptions
impl Copy for EncoderOptions
Source§impl Debug for EncoderOptions
impl Debug for EncoderOptions
Source§impl Default for EncoderOptions
impl Default for EncoderOptions
impl Eq for EncoderOptions
Source§impl PartialEq for EncoderOptions
impl PartialEq for EncoderOptions
impl StructuralPartialEq for EncoderOptions
Auto Trait Implementations§
impl Forget for EncoderOptions
impl Freeze for EncoderOptions
impl Move for EncoderOptions
impl RefUnwindSafe for EncoderOptions
impl Send for EncoderOptions
impl Sync for EncoderOptions
impl Unpin for EncoderOptions
impl UnsafeUnpin for EncoderOptions
impl UnwindSafe for EncoderOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.