Error (imagemagick + imgur)
-
Hello! Please help me fix this error.
When i'm installed imagemagick plugin, I can't upload any images via plugin imgur, forum shows error:
Could not execute GraphicsMagick/ImageMagick: identify "-ping" "-format" "%wx%h" "/tmp/B5eUfPLisOEiFmq11e1eYtbh.jpg" this most likely means the gm/convert binaries can't be found
NodeBB 1.14.3
https://github.com/julianlam/nodebb-plugin-imagemagick
https://github.com/barisusakli/nodebb-plugin-imgur -
@togan Do you have ImageMagick itself installed? What is the result when you drive this command?
[foo@forums ~]# which convert
Should return something akin to this:
/usr/bin/convert
If not, then ImageMagick binaries are either not installed or installed to some atypical location that is not in your PATH. Speaking of which, just to be thorough, also test this command:
[foo@forums ~]# echo $PATH
Which should return something similar to:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
If ImageMagick is installed but not in your PATH then you need to adjust your PATH.
The above is not meant to be exhaustive diagnosis. Could be other things. Please post relevant info like:
- NodeBB version
- NodeJS version
- Host distribution
Cuz the helpers that may come after me will likely want such details. Good luck! o/
-
@togan said in Error (imagemagick + imgur):
NodeBB 1.14.3
NodeJS 13.14.0
Ubuntu 18.04which convert
When enter this command nothing happens.
This is indicative of ImageMagick not being installed on your system. Else being installed in some non standard location unknown to Ubuntu, which I deem unlikely. You need to ensure ImageMagick is indeed installed and its binary actually available for the image-magick plugin to call. So... Heh... Been a while since I did Debian derivatives, but try driving this command:
apt install ImageMagick
Iirc, if:
-
ImageMagic is not installed, apt should prompt you confirm that you do, indeed, wish to install it.
-
ImageMagick is somehow, already installed, apt should ask for confirmation for reinstall.
In either case, select "y".
Good luck. o/
-
-
@togan Cool. Glad you got it working.
Have fun and enjoy NodeBB!
P.S.; For future reference, the Technical Support Category is a better fit for queries such as this, as the "bug" was configuration side, not NodeBB itself.