Command line error during svg to tif conversion

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
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Command line error during svg to tif conversion

Post by rickchin »

I am trying to convert an svg file with multiple images into a tiff image. Using this command ...
convert nist4x.svg nist.tif

I get the following errors ...
convert: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/715.
convert: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/715.
convert: DelegateFailed `'rsvg' '%i' '%o'' @ error/delegate.c/InvokeDelegate/1845.
convert: UnableToOpenFile '/var/folders/mz/2cts4z811fb6n6jf13qxb_2w0000gn/T/magick-22413oOap2tejjzm': No such file or directory @ error/constitute.c/ReadImage/548.
convert: NoImagesDefined `nist.tif' @ error/convert.c/ConvertImageCommand/3253.

Any insights would be greatly appreciated.
Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Command line error during svg to tif conversion

Post by fmw42 »

I am not an expert on SVG, but what is your IM version and platform? Please always provide that information with any question on this forum.

What do you get from

convert -version

Do you have either xml or rsvg delegates installed? It would appear that you do not have any delegate that can process SVG.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Command line error during svg to tif conversion

Post by snibgo »

rickchin wrote:UnableToOpenConfigureFile `magic.xml'
IM can't open its own configuration files. This is a major problem, most easily cured by re-installing.

As fmw42 says, what is your IM version and platform? Not that it makes much difference, because you should probably reinstall.
snibgo's IM pages: im.snibgo.com
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Re: Command line error during svg to tif conversion

Post by rickchin »

I have installed twice with the same result.

The version is ...
Version: ImageMagick 7.0.3-5 Q16 x86_64 2016-10-18 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib freetype jng jpeg lcms png

Running on MacOS Sierra 10.12.1

I did define MAGICK_CONFIGURE_PATH which seemed to get rid of the 1st two errors. Still getting the following ...
convert nist4x.svg nist.tif
convert: DelegateFailed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1845.
convert: UnableToOpenFile '/var/folders/mz/2cts4z811fb6n6jf13qxb_2w0000gn/T/magick-3641cJO178PQWS4v': No such file or directory @ error/constitute.c/ReadImage/548.
convert: NoImagesDefined `nist.tif' @ error/convert.c/ConvertImageCommand/3253.

I am new to all of this. Are delegates something I must manually install on Mac?

BTW, I am able to do other conversion such as jpg to tif.

Thanks again.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Command line error during svg to tif conversion

Post by snibgo »

Okay, now you've cured the configuration files problem. Now we have:
convert: DelegateFailed `'rsvg-convert'
IM is trying to run that program. Do you have that program? Is it on your system path? If not, then that's the problem.
snibgo's IM pages: im.snibgo.com
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Re: Command line error during svg to tif conversion

Post by rickchin »

No I don't seem to have "rsvg-convert" on my system.

To install IM, I downloaded the tar file and manually set the environment variables as described here ... http://www.imagemagick.org/script/binar ... php#macosx

Is there a way to download the rsvg-convet file and setup correctly with my IM install?

NOTE:
I did first try to install IM using MacPort, but once the install was done, I couldn't locate it on disk and no environment variables were setup to execute it from the command line. I ended up uninstalling and doing it manually as described above. The reason I mention this is that I see that IM can be installed with rsvg using MacPort. Just not sure if this is a good option at this point.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Command line error during svg to tif conversion

Post by snibgo »

Sorry, I don't know Macs or rsvg-convert.
snibgo's IM pages: im.snibgo.com
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Re: Command line error during svg to tif conversion

Post by rickchin »

snibgo wrote:Sorry, I don't know Macs or rsvg-convert.
Ok, thanks anyway for taking the time.
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Re: Command line error during svg to tif conversion

Post by rickchin »

Update: I was able to use MacPorts to install rsvg on my system.

sudo port install librsvg

IM is able to find and use it, which is great. But now I get the following error ...
Abort trap: 6
rickchin
Posts: 6
Joined: 2016-11-22T15:08:28-07:00
Authentication code: 1151

Re: Command line error during svg to tif conversion

Post by rickchin »

I am trying to convert an svg file (https://drive.google.com/file/d/0B3bpPA ... sp=sharing) into a tiff and I get the same "Abort trap: 6" error.

magick Block.svg Block.tif

Any guidance would be much appreciated.

I am running on MacOS Sierra.

Version: ImageMagick 7.0.3-5 Q16 x86_64 2016-10-18 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib freetype jng jpeg lcms png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Command line error during svg to tif conversion

Post by fmw42 »

I am on a Mac. For me the best way to install IM is to install all delegates from MacPorts and then install IM manually from source. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
Post Reply