attachment_fu and exif orientation

i'm playing around with figuring out a way to get attachment_fu to
rotate images according to embedded exif data. I was wondering if
anyone had played with this, or had any ideas. I'm currently using
the mini_magick processor although I'm getting ready to move this
application over to core_image instead (in otherwords, an already
hacked attachment_fu).

I'm putting a link to my first attempt at doing this... I'd love to
get some feedback, some suggestions, or pointers to some already done
products. (why repeat what someone else might have already done).

Thanks!

http://pastie.caboo.se/pastes/158604