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

Version Path
dimension-0.3.0 bin/dimension
dimension-0.2.0 bin/dimension
dimension-0.1.4 bin/dimension
dimension-0.1.3 bin/dimension
dimension-0.1.2 bin/dimension
dimension-0.1.1 bin/dimension
dimension-0.0.7 bin/dimension
dimension-0.0.6 bin/dimension
dimension-0.1.0 bin/dimension
dimension-0.0.5 bin/dimension
dimension-0.0.4 bin/dimension
dimension-0.0.3 bin/dimension