Converting SVG to PNG on QNAP fails
Posted: 2019-10-13T11:36:53-07:00
Hi@All,
I´m trying since quite a while to fix a problem I´m having when I want to convert a SVG File to a PNG using Imagemagick.
In the past it worked without any Problem on a Raspberry Pi but last year I switched for some reasons to a QNAP NAS and there I have trouble with ImageMagick.
ImageMagick 6.9.4-8 Q16 was preinstalled but I tested some further Versions (using Entware and QNAP Packages) with a similar Result.
Following the Output with -debug all Option. My Assumption is, that the TMP-Files are not being created, I just don´t know why.
TEMP Directory is set to default in policy.xml (/tmp).
I hope anybody has a hint for me where to look or what to change.
Thanks in Advance for any advices.
Regards
David
I´m trying since quite a while to fix a problem I´m having when I want to convert a SVG File to a PNG using Imagemagick.
In the past it worked without any Problem on a Raspberry Pi but last year I switched for some reasons to a QNAP NAS and there I have trouble with ImageMagick.
ImageMagick 6.9.4-8 Q16 was preinstalled but I tested some further Versions (using Entware and QNAP Packages) with a similar Result.
Following the Output with -debug all Option. My Assumption is, that the TMP-Files are not being created, I just don´t know why.
TEMP Directory is set to default in policy.xml (/tmp).
Code: Select all
[/etc/config/ImageMagick-6] # convert -debug all /opt/fhem/www/images/Kindle_Status.svg -type GrayScale -depth 8
2019-10-13T20:22:31+02:00 0:00.000 0.000u 6.9.4 Configure convert[29010]: utility.c/ExpandFilenames/940/Configure
Command line: convert {-debug} {all} {/opt/fhem/www/images/Kindle_Status.svg} {-type} {GrayScale} {-depth} {8}
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Policy convert[29010]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/opt/fhem/www/images/Kindle_Status.svg" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Blob convert[29010]: blob.c/OpenBlob/2597/Blob
read 3 magic header bytes
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Cache convert[29010]: cache.c/DestroyPixelCache/1214/Cache
destroy
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/ImageMagick-6/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/lib/ImageMagick-6.9.4//config-Q16/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/config/ImageMagick-6/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/doc/ImageMagick-6/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.config/ImageMagick/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.magick/magic.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: magic.c/LoadMagicCache/792/Configure
Loading magic configure file "/etc/config/ImageMagick-6/magic.xml" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Policy convert[29010]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="SVG" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/ImageMagick-6/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/lib/ImageMagick-6.9.4//config-Q16/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/config/ImageMagick-6/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/doc/ImageMagick-6/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.config/ImageMagick/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/root/.magick/delegates.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: delegate.c/LoadDelegateCache/2087/Configure
Loading delegate configuration file "/etc/config/ImageMagick-6/delegates.xml" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Policy convert[29010]: policy.c/IsRightsAuthorized/574/Policy
Domain: Delegate; rights=Execute; pattern="SVG" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Policy convert[29010]: policy.c/IsRightsAuthorized/574/Policy
Domain: Delegate; rights=Execute; pattern="(null)" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/502/Resource
...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/553/Resource
Acquire magick-29010J43Pj-zsMmXL
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/502/Resource
...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/553/Resource
Acquire magick-29010mNMwXijRxlSf
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010mNMwXijRxlSf
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010mNMwXijRxlSf.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/502/Resource
...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/553/Resource
Acquire magick-290105w_59aj0ZlNJ
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/502/Resource
...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/553/Resource
Acquire magick-29010GyQzzTzp8mId
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/502/Resource
...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/AcquireUniqueFileResource/553/Resource
Acquire magick-29010IeUauwz0YoDH
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010IeUauwz0YoDH
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010IeUauwz0YoDH.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Policy convert[29010]: policy.c/IsRightsAuthorized/574/Policy
Domain: Delegate; rights=Execute; pattern="rsvg-convert" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010J43Pj-zsMmXL
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010J43Pj-zsMmXL.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010mNMwXijRxlSf
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010mNMwXijRxlSf.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-290105w_59aj0ZlNJ
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-290105w_59aj0ZlNJ.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010GyQzzTzp8mId
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010GyQzzTzp8mId.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010mNMwXijRxlSf
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010mNMwXijRxlSf.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010mNMwXijRxlSf
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Resource convert[29010]: resource.c/RelinquishUniqueFileResource/1042/Resource
Relinquish magick-29010IeUauwz0YoDH
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: utility.c/ShredFile/1822/Exception
Failed to remove: magick-29010IeUauwz0YoDH.cache
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/ImageMagick-6/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/lib/ImageMagick-6.9.4//config-Q16/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/etc/config/ImageMagick-6/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/doc/ImageMagick-6/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/.config/ImageMagick/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/.magick/locale.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: locale.c/LoadLocaleCache/1179/Configure
Loading locale configure file "/etc/config/ImageMagick-6/locale.xml" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/ImageMagick-6/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/lib/ImageMagick-6.9.4//config-Q16/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/etc/config/ImageMagick-6/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/daily_build/64_10/4.3.5/LinkFS/usr/share/doc/ImageMagick-6/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/.config/ImageMagick/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Locale convert[29010]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/root/.magick/english.xml"
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Configure convert[29010]: locale.c/LoadLocaleCache/1179/Configure
Loading locale configure file "/etc/config/ImageMagick-6/english.xml" ...
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Exception convert[29010]: delegate.c/InvokeDelegate/1919/Exception
delegate failed `'rsvg-convert' -o '%o' '%i''
2019-10-13T20:22:31+02:00 0:00.010 0.000u 6.9.4 Cache convert[29010]: cache.c/DestroyPixelCache/1214/Cache
destroy
2019-10-13T20:22:31+02:00 0:00.020 0.000u 6.9.4 Exception convert[29010]: constitute.c/ReadImage/544/Exception
unable to open file `magick-29010J43Pj-zsMmXL': No such file or directory
2019-10-13T20:22:31+02:00 0:00.020 0.000u 6.9.4 Exception convert[29010]: convert.c/ConvertImageCommand/3254/Exception
missing an image filename `8'
convert: delegate failed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1919.
convert: unable to open file `magick-29010J43Pj-zsMmXL': No such file or directory @ error/constitute.c/ReadImage/544.
convert: missing an image filename `8' @ error/convert.c/ConvertImageCommand/3254.
Thanks in Advance for any advices.
Regards
David