Thanks to Rory McCann for pointing this one out.
It is possible to convert (resize, rotate etc) an image without creating a new file. mogrify takes the same options as convert but operates on the existing image. Both are tools included in imagemagick.