A convenience for cropping and outputting images, by Dan Nguyen (@dancow)
This is in very-early stage...I'm using it mostly as a quickie image cropper for various projects, as well as a way to learn the cool thor gem.
Has a few issues with painting-type images.
Load all the dependencies mentioned above (ha!)
gem install yearbook
require 'yearbook' image = Yearbook::Image.new('path/to/somebody.jpg') image.clip_and_print_best_face('output/to/somebodys-face.jpg')
yearbook face george-washington.jpg # will print out to "george-washington-face.jpg" by default