LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2024, 01:57 PM   #1
pc2005
LQ Newbie
 
Registered: Nov 2017
Distribution: slackware64-current/multilib, openwrt, buildroot, debian
Posts: 29

Rep: Reputation: Disabled
SVG overwritten by "identify"


As in topic. When I try to open .svg file (valid or invalid) by:

Code:
identify <filename.svg>
or:

Code:
display <filename.svg>
entire file will be overwritten by error message:

Code:
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty

^

** (org.inkscape.Inkscape:669): WARNING **: 20:46:12.346: Could not detect file format. Tried to open it as an SVG anyway but this also failed.
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Start tag expected, '<' not found
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty
^
ink_file_open: '/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb' cannot be opened!
InkscapeApplication::document_open: Failed to open: /tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb
ConcreteInkscapeApplication::on_open: failed to create document!
Distribution slackware64-current with alienbob repos.

BTW "identify" is also used by F3 view in midnight commander.

Can somebody confirm it is not just my machine configuration?
 
Old 04-13-2024, 05:44 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,107

Rep: Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282
Quote:
Sat Apr 13 19:45:25 UTC 2024
l/imagemagick-7.1.1_29-x86_64-1.txz: Upgraded.
Revert to the previous ImageMagick because the latest one is destroying SVG
files if "identify" or "display" is used on them.
Thanks to pc2005.
http://slackware.oregonstate.edu/sla.../ChangeLog.txt
 
Old 04-13-2024, 06:30 PM   #3
Markus Wiesner
Member
 
Registered: Mar 2016
Distribution: Slackware
Posts: 146

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by pc2005 View Post
Can somebody confirm it is not just my machine configuration?

I can reproduce the problem only with imagemagick-7.1.1_29-x86_64-1. Did you update /etc/ImageMagick-7/delegates.xml after installing imagemagick-7.1.1_30-x86_64-1?

Code:
--- imagemagick-7.1.1_29-x86_64-1/etc/ImageMagick-7/delegates.xml.new   2024-02-26 20:03:29.000000000 +0100
+++ imagemagick-7.1.1_30-x86_64-1/etc/ImageMagick-7/delegates.xml.new   2024-04-08 20:11:03.000000000 +0200
@@ -109,7 +109,7 @@
   <delegate decode="sid" command="&quot;mrsidgeodecode&quot; -if sid -i &quot;%i&quot; -of tif -o &quot;%o&quot; &gt; &quot;%u&quot;"/>
   <delegate decode="svg" command="&quot;rsvg-convert&quot; -o &quot;%o&quot; &quot;%i&quot;"/>
   <!-- Change export-filename to export-png for inkscape < 1.0 -->
-  <delegate decode="svg:decode" stealth="True" command="&quot;inkscape&quot; &quot;%s&quot; --export-filename=&quot;%s&quot; --export-dpi=&quot;%s&quot; --export-background=&quot;%s&quot; --export-background-opacity=&quot;%s&quot; &gt; &quot;%s&quot; 2&gt;&amp;1"/>
+  <delegate decode="svg:decode" stealth="True" command="&quot;inkscape&quot; &quot;%s&quot; &quot;--export-filename=%s&quot; &quot;--export-dpi=%s&quot; &quot;--export-background=%s&quot; &quot;--export-background-opacity=%s&quot;"/>
   <delegate decode="tiff" encode="text" command="&quot;tesseract&quot; &quot;%i&quot; &quot;%u&quot;; /usr/bin/mv &quot;%u.txt&quot; &quot;%o&quot;"/>
   <delegate decode="tiff" encode="launch" mode="encode" command="&quot;gimp&quot; &quot;%i&quot;"/>
   <delegate decode="wdp" command="/usr/bin/mv &quot;%i&quot; &quot;%i.jxr&quot;; &quot;JxrDecApp&quot; -i &quot;%i.jxr&quot; -o &quot;%o.tiff&quot;; /usr/bin/mv &quot;%i.jxr&quot; &quot;%i&quot;; /usr/bin/mv &quot;%o.tiff&quot; &quot;%o&quot;"/>

Last edited by Markus Wiesner; 04-13-2024 at 06:32 PM. Reason: added diff
 
1 members found this post helpful.
Old 04-14-2024, 03:12 AM   #4
pc2005
LQ Newbie
 
Registered: Nov 2017
Distribution: slackware64-current/multilib, openwrt, buildroot, debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Markus Wiesner View Post
I can reproduce the problem only with imagemagick-7.1.1_29-x86_64-1. Did you update /etc/ImageMagick-7/delegates.xml after installing imagemagick-7.1.1_30-x86_64-1?
Thanks, that seems to help.

It was a configuration problem after all. I must have missed the configuration changed notice even when I specifically reinstalled the imagemagick yesterday :-/.

So the imagemagick-7.1.1_30 is fine, but delegates.xml _must_ be updated or it destroys svg.
 
  


Reply

Tags
bug, imagemagick, svg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [SVG/HTML] Scrolling referenced SVG – Not inline SVG Michael Uplawski Programming 11 01-21-2023 05:30 AM
LXer: Identify PCI and USB Wired and Wireless Driver in Linux – Identify PCI Driver. Ubuntu, Debian, LXer Syndicated Linux News 0 08-20-2014 07:21 AM
LXer: SVG Web: Google Brings SVG Support to Internet Explorer LXer Syndicated Linux News 0 08-25-2009 04:12 PM
How to read "identify" button press event, or state of "identify" blue led with IPMI? iav Linux - Server 0 01-27-2009 01:13 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration