Have you taken a look at mini-magick?
You can git clone it from here:
http://github.com/probablycorey/mini_magick/tree/master
If you need to learn about git, check out these links:
http://git.or.cz/course/svn.html (crash course with git, compared to subversion)
http://github.com/guides/git-screencasts (github screencasts)
It's a ruby wrapper around the imagemagick functions (unsure if attachment_fu uses this internally), but it's absolutely leaps and bounds better than RMagick (RMagick is extremely bloated, lots of memory problems). Anywho, mini-magick will let you do all the things you need and then some. Check out the README listed on the github link above, and it'll give you the rundown on how to use it.
Here's a snippet:
#For resizing an image
image = MiniMagick::Image.from_file("input.jpg")
image.resize "100x100"
image.write("output.jpg")
#For determining properties of an image...
image = MiniMagick::Image.from_file("input.jpg")
image[:width] # will get the width (you can also use :height and :format)