Command line error during svg to tif conversion
Command line error during svg to tif conversion
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!
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!
- 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
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.
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.
-
- 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
IM can't open its own configuration files. This is a major problem, most easily cured by re-installing.rickchin wrote:UnableToOpenConfigureFile `magic.xml'
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
Re: Command line error during svg to tif conversion
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.
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.
-
- 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
Okay, now you've cured the configuration files problem. Now we have:
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.convert: DelegateFailed `'rsvg-convert'
snibgo's IM pages: im.snibgo.com
Re: Command line error during svg to tif conversion
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.
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.
-
- 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
Sorry, I don't know Macs or rsvg-convert.
snibgo's IM pages: im.snibgo.com
Re: Command line error during svg to tif conversion
Ok, thanks anyway for taking the time.snibgo wrote:Sorry, I don't know Macs or rsvg-convert.
Re: Command line error during svg to tif conversion
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
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
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
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
- 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
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