]> git.donarmstrong.com Git - lilypond.git/commit
ps-to-png.scm: only use -dEPSCrop for EPS files.
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 17 Jun 2010 22:41:52 +0000 (15:41 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 18 Jun 2010 20:26:36 +0000 (13:26 -0700)
commit1f8c40c86902c6c98091ccfd3ecf02ec1fc2bed5
treee1eda4f74ce14fed0a0ce4064b35f1f8c5931672
parentee0488f3aa19e0060b6e17c46a4d88cb9d57c489
ps-to-png.scm: only use -dEPSCrop for EPS files.

The previous check for multi-page documents fails to account for
single-page PS files, which must have page sizes specified using
-dDEVICEWIDTHPOINTS and -dDEVICEHEIGHTPOINTS when converted to PNG.

This commit improves the situation: only use the -dEPSCrop option for
EPS files, which do not have a page count.  All files that specify a
page count (PS files), will now be converted to PNGs with correct
dimensions.
scm/ps-to-png.scm