Evil Twin attachment_fu with ImageScience and MiniMagick // writing
There’s now a forked version of attachment_fu with the hack built in.
By far the highest trafficked page on this site is my hack for attachment_fu that gives you non-rubbish thumbnailing, cropped without screwing up the proportions of the image.

Having read the Errtheblog post about evil twin plugins, I thought it might be a good idea to provide my own. Even though he shows an example using attachment_fu, Chris permanently changes the behaviour rather than enhancing as in my method.
So, I present attachment_fu_hack. It just does what the source code hacking from my previous article does, but in a plugin.
I’ve moved the link from my old SVN on Dreamhost to github. Yay.
script/plugin install git://github.com/andycroll/attachment_fu_crop_imagescience.git
Hope you find it useful.
Comments
John
I’m using imagescience and not minimagick. Can i still use this plugin?
I installed the plugin and restarted the server and got this
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load—mini_magick (MissingSourceFile)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
Only works after i remove code for minimagick.
Andy
I’m not sure I follow, there’s no ‘require’ for minimagick in my code.
I don’t have minimagick installed and I can’t seem to replicate your error…
Andy
I take it back!
it’s to do with the way the attachment_fu classes are reopened. So when reopening the MiniMagick it finds the require from the original plugin.
I’ve taken out the MiniMagick support, as I’m an ImageScience man.
John
Yup same here… ImageScience :)
Though u might want to leave the mini_magick part commented out for the rest of those pplz :P