-
Notifications
You must be signed in to change notification settings - Fork 4
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
Wouldn't compile #5
Comments
Stumbled upon the same problem. Turned out it was using libmagick7 when this tool seem to have been written for version 6. |
I seem to be facing a similar issue here:
|
So, I'm running fedora, and I encountered the same error as @ossix.
diff --git a/xwobf.c b/xwobf.c
index 88dc631..ac643e2 100644
--- a/xwobf.c
+++ b/xwobf.c
@@ -191,14 +191,14 @@ void obscure_rectangle(rectangle_t *rec, int pixel_size, int fuzzy)
// This is where the magick happens
(void)MagickResizeImage(obs_wand, (rec->w)/pixel_size, (rec->h)/pixel_size,
- PointFilter);
+ PointFilter, pixel_size);
if (fuzzy) {
(void)MagickBlurImage(obs_wand, 0, 1);
}
(void)MagickResizeImage(obs_wand, rec->w, rec->h,
- PointFilter);
+ PointFilter, pixel_size);
- (void)MagickCompositeImage(wand, obs_wand, OverCompositeOp, MagickTrue, rec->x, rec->y);
+ (void)MagickCompositeImage(wand, obs_wand, OverCompositeOp, rec->x, rec->y);
obs_wand = DestroyMagickWand(obs_wand);
} It seems to run. 🤷 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had some trouble getting it to compile. It was complaining about too few and too many arguments to various Magick functions. I removed the trailing 0 from all
MagickResizeImage
calls and added aMagickTrue
as the fourth argument toMagickCompositeImage
to comply with this: https://www.imagemagick.org/api/magick-image.phpAfter that everything compiles fine. Is this an ImageMagick version issue?
The text was updated successfully, but these errors were encountered: