-dNOPAUSE\
-dTextAlphaBits=4\
-sDEVICE=png16m\
- -sOutputFile='~a'\
+ -sOutputFile=~S\
-sPAPERSIZE=~a\
-r~S\
- '~a'\
+ ~S\
-c showpage\
- -c quit" (search-gs) output-file paper-size resolution ps-name)
+ -c quit"
+ (search-gs)
+ (if verbose? "" "-q")
+ output-file paper-size resolution ps-name)
(format #f "~a\
~a\
-s\
-dNOPAUSE\
-dTextAlphaBits=4\
-sDEVICE=png16m\
- -sOutputFile='~a'\
+ -sOutputFile=~S\
-r~S\
- '~a'\
+ ~S\
-c quit"
(search-gs)
(if verbose? "" "-q")
(format #f (_ "~a exited with status: ~S") "GS" status))
(exit 1)))
(if (and rename-page-1? multi-page?)
- (rename (re-sub "%d" "1" pngn) png1))
+ (rename-file (re-sub "%d" "1" pngn) png1))
(append (dir-re "." png1) (dir-re "." pngn-re)))))