Re: Problem converting some svgz
> On Fri, Sep 15, 2023 at 07:25:44PM +0200, Dan via lyx-users wrote: > >> Yes, I did, that's why I suspect the problem is actually with these >> third-party apps rather than LyX. >> Generate PDF files (attached) from redo.svgz >> 1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz" >> 2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz" >> > > I could reproduce the problem with Inkscape. I can actually open the file in > Inkscape and it looks fine (though there are Warning on the console about svg > content). > It's the export when it breaks completely. I suggest to file bug against > inkscape itself. > Asked for peer confirmation on IRC as well. A person replied to me confirming the problem with version 1.3; but also told me that this problem does not happen in the upstream version (1.4-dev) of Inkscape. That person recommended me to file a bug so that the "fix" is backported to the next release of Inkscape (1.3.1). > For LyX purposes you could bypass this problem by using rsvg-convert instead > of inkscape (works fine here). > Another way could by to try luck in different vector editor, resave it and > try again. > > Pavel > Thanks for the suggestion! I stopped using Inkscape because the packaged AppImage is quite slow compared to other options, such as cairosvg. Will give it a try. Daniel. -- Enviat amb Tutanota. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
On Fri, Sep 15, 2023 at 07:25:44PM +0200, Dan via lyx-users wrote: > Yes, I did, that's why I suspect the problem is actually with these > third-party apps rather than LyX. > Generate PDF files (attached) from redo.svgz > 1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz" > 2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz" I could reproduce the problem with Inkscape. I can actually open the file in Inkscape and it looks fine (though there are Warning on the console about svg content). It's the export when it breaks completely. I suggest to file bug against inkscape itself. For LyX purposes you could bypass this problem by using rsvg-convert instead of inkscape (works fine here). Another way could by to try luck in different vector editor, resave it and try again. Pavel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
On Fri, Sep 15, 2023 at 07:31:01PM +0200, Dan via lyx-users wrote: > > > > Both PDFs (attached) display only the shadow of the arrow, not the arrow > > itself. > > > Forgot to add the attachments, I am dumb :(. Thanks, this is helpful. This way if we hear of a report of the problem we know what the root issue is. Scott signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
> Both PDFs (attached) display only the shadow of the arrow, not the arrow > itself. > Forgot to add the attachments, I am dumb :(. Daniel. Enviat amb Tutanota. redo_cairosvg.pdf Description: Adobe PDF document redo_inkscape.pdf Description: Adobe PDF document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
>> > I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the >> > latest AppImage(d)), but the problem partially persists: now the Undo icon >> > displays properly in workarea and PDF, but Redo does not in neither of >> > them. See the attached images. >> > >> Sorry, I meant now Redo is not showing properly >> 1. Neither in LyX workarea nor in PDF output when cache is enabled. >> 2. Only in PDF output when cache is disabled. >> > > Can you reproduce the problem directly on the command line with cairosvg and > inkscape? > > Scott > Yes, I did, that's why I suspect the problem is actually with these third-party apps rather than LyX. Generate PDF files (attached) from redo.svgz 1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz" 2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz" Both PDFs (attached) display only the shadow of the arrow, not the arrow itself. I tested this with other icons (cut, paste, undo) - Inkscape gave no problems. - Cairosvg gave no problems with the first two, but the latter yielded an empty pdf. Daniel. -- Enviat amb Tutanota. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
On Tue, Sep 12, 2023 at 06:05:50PM +0200, Dan via lyx-users wrote: > > > > I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the > > latest AppImage(d)), but the problem partially persists: now the Undo icon > > displays properly in workarea and PDF, but Redo does not in neither of > > them. See the attached images. > > > Sorry, I meant now Redo is not showing properly > 1. Neither in LyX workarea nor in PDF output when cache is enabled. > 2. Only in PDF output when cache is disabled. Can you reproduce the problem directly on the command line with cairosvg and inkscape? Scott signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problem converting some svgz
> I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the > latest AppImage(d)), but the problem partially persists: now the Undo icon > displays properly in workarea and PDF, but Redo does not in neither of them. > See the attached images. > Sorry, I meant now Redo is not showing properly 1. Neither in LyX workarea nor in PDF output when cache is enabled. 2. Only in PDF output when cache is disabled. Daniel. -- Enviat amb Tutanota. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Problem converting some svgz
Hello, I am having a problem with some svgz (gzipped svg files) not displaying propely in both, the LyX's workarea and the PDF output. I ask here to see if someone else has (or has had) a similar problem and can give me some advice. PROBLEM Follow through these steps 1. Run LyX. 2. Deactivate the cache for converters (Tools > Preferences > File Handling > Converters) and delete the content of the cache folder (~/.lyx/cache in GNU/Linux). 3. Open the attached file (is a minimal example). 4. Check whether you see the Undo and Redo icons in the workarea. 5. Generate a PDF output and check whether the Undo and Redo icons display properly. In my case, all the icons displayed correctly, but the Undo and Redo ones. After some exploration and looking into the debug messages (lyx -dbg graphics my-file.lyx), I realized 1. With cache for files disabled, no conversion is actually carried out to display the icons in the workarea. When cache is enabled, the problem with Undo and Redo icons shows in the workarea as well. 2. The problem has to do with the converter from SVGZ to PDF and PNG formats, in my case cairosvg ("cairosvg -f pdf -o $$o $$i" for PDF, for instance). I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the latest AppImage(d)), but the problem partially persists: now the Undo icon displays properly in workarea and PDF, but Redo does not in neither of them. See the attached images. My converter instruction is now: inkscape --export-area-drawing -o $$o $$i The conversion type is inferred by Inkscape from the output-file extension, but Inkscape is not very verbose about the process and what goes wrong, so I am stuck now... Any help would be appreciated, as I do not want to face this problem in an actual and more important document in the future. Thanks. SYTEM INFO == Inkscape (inkscape --debug-info) Inkscape 1.3 (0e150ed, 2023-07-21) GLib version: 2.64.6 GTK version: 3.24.20 glibmm version: 2.64.2 gtkmm version: 3.24.2 libxml2 version: 2.9.10 libxslt version: 1.1.34 Cairo version: 1.17.7 Pango version: 1.44.7 HarfBuzz version: 2.6.4 OS version: Linux Mint 21.2 Lyx: Version 2.4.0~RC1.devel (not released yet) Built from git commit hash b5bd214c Qt Version (run-time): 5.15.3 on platform xcb Qt Version (compile-time): 5.15.3 OS Version (run-time): Linux Mint 21.2 Python detected: 3.10.12 (/usr/bin/python3) Daniel. -- Enviat amb Tutanota. Problem-with-icons_minimal-example.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users