RMagick leaks memory like a sieve.  I do this in a pair of worker threads that just fire off system calls to the GraphicsMagick command.  (Hat tip to HN: I learned about it here and saved 50% on conversion time versus doing it with ImageMagick.)