RMagic via Rails: "Corrupt JPEG data"

I am getting the same error when trying to thumbnail existing images on
dreamhost RoR with rmagick.
Found any solutions or tips. Maybe Rmagick needs to be updated?
-Dallas