-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subcommands Usage #81
Comments
I could swear I got the right syntax but it does not work. The command above actually trims the image which these instructions do not: START.call_once(|| {
magick_wand_genesis();
});
let wand = MagickWand::new();
wand.read_image(file_path).unwrap();
wand.fit(414, 896);
let scaled_img = wand.write_image_blob("JPEG").unwrap();
// Trimming a blurred version of the image to catch the border correctly
let wand_trim = MagickWand::new();
wand_trim.read_image_blob(scaled_img).unwrap();
wand_trim.blur_image(0_f64, 15.0).unwrap();
wand_trim.trim_image(0.15).unwrap();
// Same as +repage option: https://legacy.imagemagick.org/discourse-server/viewtopic.php?t=23397
wand_trim.reset_image_page("0x0+0+0").unwrap();
debug_assert_ne!(wand.get_image_width(), wand_trim.get_image_width()); I can see the same blur if I write the image, but no trim. What might I be missing? |
Unfortunately, this is well beyond any usage with which I have experience. One question though, does the |
There is a |
How would I go about doing this?
I'm not looking for an exact answer, just how to approach the problem. I assume two distinct wand, but I'd like to see an example.
The text was updated successfully, but these errors were encountered: