Installing version 7.x on OSX

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jamesclark
Posts: 4
Joined: 2017-02-13T14:40:54-07:00
Authentication code: 1151

Installing version 7.x on OSX

Post by jamesclark »

Hi,

I've just followed the Mac binary installation instructions here https://www.imagemagick.org/script/download.php
I can't use the MacPorts installation method because it's a pre v7 version on there. So I used the precompiled .tar version.

After installing I can run magick with no arguments, but if I try to convert an image, I get 'UnableToOpenConfigureFile...'. I have pasted the output below.

I'm sure there is some kind of configure file env variable that needs setting but I can't find any info about what to do for v7. Any help is appreciated.

Thanks

Code: Select all

Jamess-Mac-mini:icon jimbo$ magick
Error: Invalid argument or not enough arguments

Usage: magick [ {option} | {image} ... ] {output_image}
       magick [ {option} | {image} ... ] -script {filename} [ {script_args} ...]
       magick -help | -version | -usage | -list {option}

Jamess-Mac-mini:icon jimbo$ magick icon.svg output.png
magick: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: DelegateFailed `'rsvg' '%i' '%o'' @ error/delegate.c/InvokeDelegate/1845.
magick: UnableToOpenFile '/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-49457ITiNbCY8et1L': No such file or directory @ error/constitute.c/ReadImage/548.
magick: NoImageForProperty "%w" @ warning/property.c/GetMagickPropertyLetter/2550.
magick: UnknownImageProperty "%w" @ warning/property.c/InterpretImageProperties/3488.
magick: NoImageForProperty "%h" @ warning/property.c/GetMagickPropertyLetter/2438.
magick: UnknownImageProperty "%h" @ warning/property.c/InterpretImageProperties/3488.
magick: NoImageForProperty "%m" @ warning/property.c/GetMagickPropertyLetter/2469.
magick: UnknownImageProperty "%m" @ warning/property.c/InterpretImageProperties/3488.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing version 7.x on OSX

Post by fmw42 »

What is your Mac OSX. The binary for IM is only for Mac OS X El Capitan. If you are not on El Capitan, then I suggest you install from Homebrew. They just started using IM 7 in place of IM 6. MacPorts does not seem interested in using IM 7, as they say it is not compatible with other software dependencies.

Alternately, I install all my delegates from MacPorts and install IM manually from source. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
jamesclark
Posts: 4
Joined: 2017-02-13T14:40:54-07:00
Authentication code: 1151

Re: Installing version 7.x on OSX

Post by jamesclark »

Yeah I'm on OS X El Capitan 10.11.6. I did have v6 installed previously if that could cause conflicts?

I'll try homebrew though and get back to you.

Thanks
jamesclark
Posts: 4
Joined: 2017-02-13T14:40:54-07:00
Authentication code: 1151

Re: Installing version 7.x on OSX

Post by jamesclark »

Heyyyyyy it works now! Thank you so much.

Although I do get this printed out when I run it, it still outputs a file. So not sure if it's an error or not:

Code: Select all

Jamess-Mac-mini:icon jimbo$ magick icon.svg icon.png
sh: line 1:  1769 Trace/BPT trap: 5       'inkscape' '/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-1767TucoekFr7EVA' --export-png='/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-1767hSUS9lG0rLq4' --export-dpi='90,90' --export-background='rgb(100%,100%,100%)' --export-background-opacity='1' > '/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-1767YlhEL2hG6Oij' 2>&1
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing version 7.x on OSX

Post by fmw42 »

It is a problem with Inkscape for converting your svg file. Do you have Inkscape on your system? Do you have PNG delegate?

You can check delegates from

Code: Select all

convert -version
or

Code: Select all

convert -list format
The latter will give you version numbers.

If you have RSVG delegate, you can try

Code: Select all

magick RSVG:icon.svg icon.png
or use the IM MSVG

Code: Select all

magick MSVG:icon.svg icon.png
Do either of those work?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Installing version 7.x on OSX

Post by snibgo »

jamesclark wrote:sh: line 1: 1769 Trace/BPT trap: 5 'inkscape' ...
That's not the usual format of a message from IM, neither a warning or error. What is "Trace/BPT"? I don't know. Perhaps you have some software installed that is telling you that IM has issued that Inkscape command.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing version 7.x on OSX

Post by fmw42 »

Perhaps it is something from the Homebrew install. Do any other IM commands such as

Code: Select all

convert logo: logo.png
give messages?
jamesclark
Posts: 4
Joined: 2017-02-13T14:40:54-07:00
Authentication code: 1151

Re: Installing version 7.x on OSX

Post by jamesclark »

Yes convert gives the same message (although thats version 6.9.7)

Code: Select all

Jamess-Mac-mini:icon jimbo$ convert icon.svg icon.png
sh: line 1:  1871 Trace/BPT trap: 5       '/opt/local/bin/inkscape' '/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-1869YPKlDeleKkEC' --export-png='/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-18694C-3qHiG1N7A' --export-dpi='90,90' --export-background='rgb(100%,100%,100%)' --export-background-opacity='1' > '/var/folders/_y/c9wl0szd6977kj1z66fltbh80000gp/T/magick-1869_rEz13o94qky' 2>&1
This is what I get from 'magick --version':

Code: Select all

Jamess-Mac-mini:icon jimbo$ magick --version
Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-15 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules 
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
But it works anyway even though this inkscape message is printed out, so I don't really mind.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing version 7.x on OSX

Post by fmw42 »

Perhaps your Inkscape is set to verbose mode?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installing version 7.x on OSX

Post by fmw42 »

You may want to re-install IM 7 from Homebrew and add a few more delegates, such as Ghostscript and fontconfig and lcms 2
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Installing version 7.x on OSX

Post by snibgo »

It's a message from Max OS X. For example, see http://stackoverflow.com/questions/1467 ... bpt-trap-5
snibgo's IM pages: im.snibgo.com
Post Reply