Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'pathname'
- OPTIONS = "-q -dNOPAUSE -dBATCH -dSAFER -r300x300 -sDEVICE=tiff24nc"
- INPUT = ARGV[0]
- OUTPUT = File.basename(INPUT, '.*') + ".tif"
- `gs #{OPTIONS} -sOutputFile="#{OUTPUT}" -c save pop -f "#{INPUT}"`
Add Comment
Please, Sign In to add comment