paperclip
https://github.com/thoughtbot/paperclip
Ruby
Easy file attachment management for ActiveRecord
Paperclip::Thumbnail#make
Performs the conversion of the +file+ into a thumbnail. Returns the Tempfile that contains the new image.
Edit
git clone [email protected]:thoughtbot/paperclip.git
cd paperclip
open lib/paperclip/thumbnail.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Paperclip--Thumbnail-make-for-pr
# Commit to gitgit add lib/paperclip/thumbnail.rbgit commit -m "better docs for Paperclip::Thumbnail#make"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Paperclip--Thumbnail-make-for-pr
hub pull-request
# Celebrate!