for name in `find ./ -type f | grep jpg`; do echo `identify -format "%w %h\n" $name` $name; done
mogrify -resize 620x -unsharp 2x1.4+0.5+0 -quality 100 .//2281/4_front.JPG
gem install image_size
irb
require 'rubygems'
require 'image_size'
puts Find.find('./')
.select{|path| path.match(/JPG$/i)}
.map do |p|
img = ImageSize.new(open(p))
gcd = img.height.gcd(img.width)
"#{img.width/gcd}, #{img.height/gcd} #{p}"
end
%s/[^/]\+$//
page.save_screenshot 'screenshot.png'