Am 24.09.2017 um 23:39 schrieb Enrico Forestieri <for...@lyx.org>: > > On Sun, Sep 24, 2017 at 10:06:24PM +0200, Stephan Witt wrote: >> Am 24.09.2017 um 18:26 schrieb Stephan Witt <st.w...@gmx.net>: >>> Am 24.09.2017 um 18:12 schrieb Enrico Forestieri <for...@lyx.org>: >>>> On Sun, Sep 24, 2017 at 12:24:26PM +0200, Stephan Witt wrote: >>>>> >>>>> This is the solution I’d like to propose. It’s not tested on Linux and >>>>> Windows. >>>>> >>>>> The idea is to add imgconvert as fallback-converter for SVG to PDF and >>>>> PNG to PDF. >>>>> At the moment it uses the Qt library routines for image processing. I’ll >>>>> plan to investigate how to integrate libcairo for real vector graphics >>>>> conversion. >>>>> >>>>> I’d like to hear your comments. >>>> >>>> I think it is fine. However, I would avoid introducing 2 more converters >>>> and instead I would modify convertDefault.py so that when imagemagick is >>>> not installed the new imgconvert command is used. >>>> >>>> In this way, whatever conversion between image formats supported by Qt >>>> would succeed (without the need of new converter definitions). >>> >>> This is a good idea too. I have to admit, I had scruple to do this. >>> I’ll try to present a patch with this alternative. >> >> Here it is. >> >> I’ve improved imgconvert utility further and modified convertDefault.py >> to call it if the version of convert couldn’t be detected. >> >> Stephan >> >> PS. Of course not tested on Linux and Windows (again). > > It works for me on linux and cygwin. Of course, one has to move away > convert, rsvg-convert, and inkscape to appreciate that.
Thank you for testing. Now I wonder if it would be better to name the utility lyxconvert. It will be installed in /usr/local/bin or something like that? I’d like to change it to avoid a potential name conflict. What do you think? Stephan