]> git.lyx.org Git - features.git/commitdiff
configure: for EPS to PNG, ask ImageMagick to only consider the first image.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Feb 2022 02:11:55 +0000 (03:11 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 20 Feb 2022 00:33:02 +0000 (01:33 +0100)
Issue discussed in the mailing list: when the EPS contains several images (Adobe Photoshop exports two of them, one being a low-quality TIFF for preview), two files are generated, none with the existing name (prefix: -0 and -1). Hence, LyX thought that there was an error.

lib/configure.py

index 17ef38fc6d97f1d8e868e28e99bd4fa689ffc1c1..f81aa3aad80e7876314b0a7c132d21895c03af86 100644 (file)
@@ -1174,7 +1174,7 @@ def checkConverterEntries():
     checkProg('an EPS -> PDF converter', ['epstopdf'],
         rc_entry = [ r'\converter eps        pdf6       "epstopdf --outfile=$$o $$i"   ""'])
     #
-    checkProg('an EPS -> PNG converter', ['magick $$i $$o', 'convert $$i $$o'],
+    checkProg('an EPS -> PNG converter', ['magick $$i[0] $$o', 'convert $$i[0] $$o'],
         rc_entry = [ r'\converter eps        png        "%%"   ""'])
     #
     # no agr -> pdf6 converter, since the pdf library used by gracebat is not