Page 1 of 1
Command line error during svg to tif conversion
Posted: 2016-11-22T15:14:11-07:00
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!
Re: Command line error during svg to tif conversion
Posted: 2016-11-22T18:12:30-07:00
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.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T03:23:57-07:00
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.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T06:28:22-07:00
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.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T06:34:26-07:00
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.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T06:59:17-07:00
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.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T07:21:47-07:00
by snibgo
Sorry, I don't know Macs or rsvg-convert.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T08:00:08-07:00
by rickchin
snibgo wrote:Sorry, I don't know Macs or rsvg-convert.
Ok, thanks anyway for taking the time.
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T08:55:10-07:00
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
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T09:07:10-07:00
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
Re: Command line error during svg to tif conversion
Posted: 2016-11-23T11:37:58-07:00
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