Merge pull request #89 from davidwilemski/strip

Add binding for MagickStripImage
This commit is contained in:
Nathan Fiedler
2022-01-18 06:29:20 -08:00
committed by GitHub

View File

@ -374,6 +374,14 @@ impl MagickWand {
}
}
pub fn strip_image(&self) -> Result<()> {
let result = unsafe { bindings::MagickStripImage(self.wand) };
match result {
bindings::MagickBooleanType_MagickTrue => Ok(()),
_ => Err(MagickError("failed to strip image")),
}
}
pub fn flip_image(&self) -> Result<()> {
let result = unsafe { bindings::MagickFlipImage(self.wand) };
match result {