Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. #
  3. # For some/file.svg run:
  4. #
  5. # script some/file
  6. #
  7. # Requirement for mac os:
  8. #
  9. # brew cask install inkscape
  10.  
  11. file = ARGV[0]
  12. %w(48 60 72 76 96 120 152 180 192 512 1200).each do |res|
  13. run "inkscape -zT -f #{file}.svg -w #{res} -h #{res} --export-png #{file}-#{res}x#{res}.png"
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement