Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- #
- # For some/file.svg run:
- #
- # script some/file
- #
- # Requirement for mac os:
- #
- # brew cask install inkscape
- file = ARGV[0]
- %w(48 60 72 76 96 120 152 180 192 512 1200).each do |res|
- run "inkscape -zT -f #{file}.svg -w #{res} -h #{res} --export-png #{file}-#{res}x#{res}.png"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement