I'm trying to put watermark on iOS app's appIcon. For that I'm following [Ray's][1] blog and I installed ImageMagick using binary release from [here][2]. I also added /bin and /lib in my paths using sudo nano /etc/paths
so convert command seems to be working.
The problem statement: when I use convert command from tutorial I get the following error
dyld: Library not loaded: /ImageMagick-7.0.1/lib/libMagickCore-7.Q16HDRI.0.dylib
Referenced from: /Users/Username/Library/ImageMagick-7.0.1/bin/convert
Reason: image not found
Abort trap: 6
Even though the image is there the error is "image not found." Any idea community ? [1]: https://www.raywenderlich.com/1716-how-to-change-your-app-icon-at-build-time [2]: https://www.imagemagick.org/script/download.php#macosx
ImageMagick is already available for utilization on the servers. It is located at: /usr/bin/convert. /usr/bin/mogrify.
If ImageMagick is installed via MacPorts, then the convert command lives in /opt/local/bin/. It is this directory that needs to get on the PATH environment variable.
ImageMagick, invoked from the command line as magick , is a free and open-source cross-platform software suite for displaying, creating, converting, modifying, and editing raster images. Created in 1987 by John Cristy, it can read and write over 200 image file formats.
I had the same problem. What worked for me was removing from the $PATH a problematic previous installation, then reinstalling:
brew update && brew upgrade
brew remove imagemagick
brew install imagemagick
Then when I ran:
which convert
I finally got the brew version:
/usr/local/bin/convert
And when I ran the command from the tutorial:
convert [email protected] -fill white -font Times-Bold -pointsize 18 -gravity south -annotate 0 "Hello World" test.png
I got the Hello World image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With