Add MagickAutoGammaImage and MagickAutoLevelImage

This commit is contained in:
Justin Shrake
2023-02-05 20:33:38 -08:00
parent 08fb952056
commit ce5dc1d4f9
2 changed files with 26 additions and 0 deletions

View File

@ -396,3 +396,23 @@ fn test_resource_limits() {
let wand = MagickWand::new();
assert!(wand.read_image("tests/data/rust.png").is_ok());
}
#[test]
fn test_auto_level() {
START.call_once(|| {
magick_wand_genesis();
});
let wand = MagickWand::new();
assert!(wand.read_image("tests/data/IMG_5745.JPG").is_ok());
assert!(wand.auto_level().is_ok());
}
#[test]
fn test_auto_gamma() {
START.call_once(|| {
magick_wand_genesis();
});
let wand = MagickWand::new();
assert!(wand.read_image("tests/data/IMG_5745.JPG").is_ok());
assert!(wand.auto_gamma().is_ok());
}