Add binding for MagickStripImage

Per the API docs, this should strip all profiles and comments attached
to the image. This can be useful for removing identifying information
from an image (e.g. EXIF tags).
This commit is contained in:
David Wilemski
2022-01-16 22:57:30 -06:00
parent 63dc05aece
commit cf7db8e39a

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 {