X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fps-to-png.scm;h=501924116991564f41c1c8c03755148fb7ec7046;hb=9c08d5a772049794eac7210558670e43f9e349ff;hp=76773ab9ce8e071d6064b2342c9e691896536433;hpb=bc95f4434f760d41191341ab4508b2064eb19025;p=lilypond.git diff --git a/scm/ps-to-png.scm b/scm/ps-to-png.scm index 76773ab9ce..5019241169 100644 --- a/scm/ps-to-png.scm +++ b/scm/ps-to-png.scm @@ -27,10 +27,7 @@ (lily) ) -;; gettext wrapper for guile < 1.7.2 -(if (defined? 'gettext) - (define-public _ gettext) - (define-public (_ x) x)) +(define-public _ gettext) (define PLATFORM (string->symbol @@ -127,10 +124,10 @@ (output-file (if multi-page? pngn png1)) (gs-variable-options - (if multi-page? - (format #f "-dDEVICEWIDTHPOINTS=~,2f -dDEVICEHEIGHTPOINTS=~,2f" - page-width page-height) - "-dEPSCrop")) + (if (string-suffix-ci? ".eps" ps-name) + "-dEPSCrop" + (format #f "-dDEVICEWIDTHPOINTS=~,2f -dDEVICEHEIGHTPOINTS=~,2f" + page-width page-height))) (cmd (ly:format "~a\ ~a\ ~a\