Sha256: 071e361878640f2df2953b3064dfe42da790136561dcdbd4e9a6bb44e047f3a7
Contents?: true
Size: 420 Bytes
Versions: 12
Compression:
Stored size: 420 Bytes
Contents
#!/usr/bin/env ruby require './lib/dimension' require 'benchmark' def usage puts 'Usage: dimension [file] [geometry] [output file/path]' puts 'Example: dimension example/assets/chair.jpg 100x100 /tmp' abort end file = ARGV[0] # or abort('File needed. Try with examples/assets/chair.jpg') geometry = ARGV[1] or usage output = ARGV[2] thumb = Dimension.open(file) res = thumb.generate!(geometry, output)
Version data entries
12 entries across 12 versions & 1 rubygems