I wrote these changes several years ago, but these changes are still in production for a video hosting site.
I thought you might find these useful.
restore old version to fix resizing images to crop correctly
Added :s3_options option to allow passing of S3 HTTP Headers, such as…
provide fallback for content type based on file extension or native u…
fallback to mime/native content type if browser reports application/o…
Added the abilty to crop with a border (think pillar/letterbox) via R…
tab -> spaces
no cropping, so do not call it as such
Merge branch 'master' of git://github.com/wireframe/attachment_fu
Fix a one character bug, where gsub! returns nil when no substitution…
…s are made.