Le 08/11/2021 à 21:57, Pavel Sanda a écrit :


Yes, this is default imagemagick policy on debian now.
First introduced in buster to overcome ghostscritp security issues, then 
reverted
in testing (forthcoming bullseye) and  then reintroduced again. I tried to 
explain
the situation in couple debian bugs but no one seem to care.

I did not get these messages with buster, maybe I upgraded from etch after the reversion to testing.


The situation is very unfortunate, because this default policy ban on
postscript conversions can not be overriden by user setting and if you
don't have root access on the machine you work, you can't use
postscript anymore.

I edited /etc/ImageMagick-6/policy.xml without success, here is the log of the first file to convert, extracted from lyx-2.3.7dev -dbg graphics

<cite>
insets/InsetGraphics.cpp (119): findTargetFormat: PDF mode
insets/InsetGraphics.cpp (742):          we have: from svgz to pdf6
insets/InsetGraphics.cpp (748): the orig file is: /usr/local/share/lyx-2.3.7dev/images/buffer-new.svgz insets/InsetGraphics.cpp (794): The original file is /usr/local/share/lyx-2.3.7dev/images/buffer-new.svgz
        A copy has been made and convert is to be called with:
file to convert = /tmp/lyx_tmpdir.ukkrIUtySeWW/lyx_tmpbuf0/0_usr_local_share_lyx-2_3_7dev_images_buffer-new.svgz
         from svgz to pdf6
insets/InsetGraphics.cpp (924): InsetGraphics::latex outputting:
\includegraphics[width=1em]{0_usr_local_share_lyx-2_3_7dev_images_buffer-new.pdf}
</cite>

With 2.4.0dev (wich works all right), I get this :

<cite>
insets/InsetGraphics.cpp (117): findTargetFormat: PDF mode
insets/InsetGraphics.cpp (735):          we have: from svgz to pdf6
insets/InsetGraphics.cpp (741): the orig file is: /usr/local/share/lyx-2.4.0dev/images/buffer-new.svgz insets/InsetGraphics.cpp (787): The original file is /usr/local/share/lyx-2.4.0dev/images/buffer-new.svgz
        A copy has been made and convert is to be called with:
file to convert = /tmp/lyx_tmpdir.HrwLplbmyPtA/lyx_tmpbuf0/export_buffer-new_svgz_c835ff7b1cb15ad019ad9820ad3e422677e2fb0ffb807224b41310571151427e.svgz
         from svgz to pdf6
insets/InsetGraphics.cpp (916): InsetGraphics::latex outputting:
\includegraphics[width=1em]{export_buffer-new_svgz_c835ff7b1cb15ad019ad9820ad3e422677e2fb0ffb807224b41310571151427e.pdf}
</cite>

How can I display the conversion process from svgz to pdf6 itself?

--
Jean-Pierre
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to