Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 186 Bytes
require 'RMagick'
include Magick
Dir.glob("images/*.jpg") do |fname|
img = Magick::Image.read(fname)[0]
img.thumbnail(0.1).write("#{fname.chomp(".jpg")}-thumb.jpg")
end
exit