$ 0 0 I think you should be able to do this using Image/Canvas Size, you can use Relative mode and then anchor the image accordingly. You will have to do it several times, but I think it should work and be recordable as an action..