Class: Resize

Inherits:
Thor
  • Object
show all
Defined in:
bin/resize2x

Instance Method Summary collapse

Instance Method Details

#resizeObject



12
13
14
15
16
17
18
19
20
# File 'bin/resize2x', line 12

def resize
  outdir = options[:outdir]

  images = Resize2x.get_2x_images(outdir)
  images.each_with_index do |image, index|
    image.resize_x2_to_half
    print "(#{(index+1).to_s}/#{images.count.to_s}) resized: #{image.new_file_path},  #{image.image.columns}x#{image.image.rows} \n"
  end
end