From faf0e9ee1396decee9351d3ea8a4bbd362290c79 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Sat, 19 Feb 2022 03:11:55 +0100 Subject: [PATCH] configure: for EPS to PNG, ask ImageMagick to only consider the first image. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configure.py b/lib/configure.py index 17ef38fc6d..f81aa3aad8 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -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 -- 2.39.5