]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4451 / 2: Add debug messages for PNG scale down
authorMasamichi Hosoda <trueroad@trueroad.jp>
Sun, 14 Jun 2015 14:38:24 +0000 (23:38 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Sat, 20 Jun 2015 13:10:07 +0000 (22:10 +0900)
In procedure ``scale-down-image'' (ps-to-png.scm),
debug messages are added.

scm/ps-to-png.scm

index a8a170cc2fb31886c5074d904cafe1e9660f8bf7..f5d40d0c5ceefdcd94cbcf4e39cc126c0b57a57b 100644 (file)
            (search-pnmtopng)
            tmp2-name)))
 
+    (ly:debug (_ "Copying `~a' to `~a'...") file tmp1-name)
     (copy-binary-file file tmp1-name)
     (ly:system-with-shell cmd)
+    (ly:debug (_ "Copying `~a' to `~a'...") tmp2-name file)
     (copy-binary-file tmp2-name file)
+    (ly:debug (_ "Deleting `~a'...") tmp1-name)
     (delete-file tmp1-name)
+    (ly:debug (_ "Deleting `~a'...") tmp2-name)
     (delete-file tmp2-name)))
 
 (define-public (ps-page-count ps-name)