Guest User

Untitled

a guest
Dec 11th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. require 'pathname'
  3.  
  4. OPTIONS = "-q -dNOPAUSE -dBATCH -dSAFER -r300x300 -sDEVICE=tiff24nc"
  5. INPUT = ARGV[0]
  6. OUTPUT = File.basename(INPUT, '.*') + ".tif"
  7.  
  8. `gs #{OPTIONS} -sOutputFile="#{OUTPUT}" -c save pop -f "#{INPUT}"`
Add Comment
Please, Sign In to add comment