Hello,
I took the ImageMagik upgrade last night on my rocky 8 server
ImageMagick 6.9.13.14-1.el8
ImageMagick-libs 6.9.13.14-1.el8
Now when I run convert in java from my Tomcat app I cannot run the command. I can run it manually from the terminal.
I tried to down grade but none available. This was the only change made. There have been no other changes. I restarted the server but made no difference.
I have checked the permissions and looks OK. Any ideas?
What I wrote above is because the syntax was changed between 6.9…something version and 7 - I can’t remember exactly - there are differences between distros…
btw if you need the latest one, it’s avail as standalone ‘magick’ from ImageMagick – Download , (alas there is avif support there, It works like ‘magick convert/mogrify’ etc
They come from epel
Upgrading:
ImageMagick x86_64 6.9.13.14-1.el8 epel 114 k
ImageMagick-libs x86_64 6.9.13.14-1.el8 epel 2.4 M
No I have not created an issue. I have in the past on centos which was a waste if time. Reporting Rocky rpm bugs directly to EPEL not sure how. Do they care?
I run the command convert in a java.lang.process etc which handles the parameters. Just running the convert on its own produces the error at the end.
I remember in the past I had to stay on a version for a while until I found a release that worked.
btw if you need the latest one, it’s avail as standalone ‘magick’ from ImageMagick – Download
It would be good to test the latest version, although the instructions for the appimage are not clear. It downloads a file called magick and if I look in the Index of /archive/binaries folder its also not clear what to do here also.
OK it does work need to use ./magick and executable. I will see if I can test this in my app, thanks.
on my devbox (bookworm) I get
magick: invalid argument for option @ error/magick-cli.c/MagickImageCommand/991.
If you find a bug in a EPEL maintained package, please report it to https://bugzilla.redhat.com/ under the “Fedora EPEL” product.
The ImageMagick is not a “Rocky rpm”. It is “EPEL rpm”. Built by EPEL, Extra Packages for Enterprise Linux. For all Enterprise Linux distros (i.e. RHEL and distros compatible with RHEL). If an EPEL package does not work on Rocky, then it does not work on RHEL, AlmaLinux, Oracle Linux, …
Yes, they do care.
the correct syntax is “./magick [command]” ie “./magick convert …” or “./magick mogrify …” etc
an example that I use : ./magick mogrify -format jpg *.bmp
…I tried to bypass this check yesterday on 6.9.13.14-1.el8 epel on the rocky server and it did not work (alas my devbox is now bookworm so its difficult to test, as I have to redeploy the app for any changes on the rocky server).
I guess we are off topic a bit now. If I have time I will try and get it to work.