Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Image not found" when using ImageMagick on Sierra (beta)

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

like image 867
Hussain Mansoor Avatar asked Aug 30 '16 06:08

Hussain Mansoor


People also ask

Where is ImageMagick installed?

ImageMagick is already available for utilization on the servers. It is located at: /usr/bin/convert. /usr/bin/mogrify.

Where is ImageMagick installed on Mac?

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.

What is ImageMagick display?

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.


1 Answers

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.

like image 157
Ivan Chaer Avatar answered Oct 06 '22 00:10

Ivan Chaer