commit b62bd4aa25e3a78c25d9e7aa471ca04c174c9bb1
Author: Koji Yokota <[email protected]>
Date:   Sun Jan 11 11:29:01 2026 +0900

    Improve PDF->PNG conversion on macOS (#12632)
---
 lib/configure.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/configure.py b/lib/configure.py
index 855f70a18f..5f1ea0fdc1 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -1148,7 +1148,11 @@ def checkConverterEntries():
         rc_entry = [ r'\converter eps        pdf6       "epstopdf 
--outfile=$$o $$i"   ""'])
     #
     #prepare for pdf -> png, 2nd part depends on IM ban below
-    pdftopng = ['sips --resampleWidth 800 --setProperty format png $$i --out 
$$o' ]
+    if sys.platform == 'darwin':
+        pdftopng = ['gs -sDEVICE=pngalpha -r200 -dUseCropBox -o $$o $$i',
+                    'sips --resampleWidth 800 --setProperty format png $$i 
--out $$o']
+    else:
+        pdftopng = []
     #
     # Due to more restrictive policies, it is possible that (image)magick
     # does not allow conversions from eps to png.
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to