OK, not saying this is the greatest, and still experimenting with it, but you can use the built-in sips terminal app if you know how big the image has to be and you are tolerant of cosmetics.
I took a screenshot, test.001.png
of this page.

But now I want to stretch it a bit to add some more space to cut and paste stuff.
sips test.001.png -g pixelHeight -g pixelWidth
.../test.001.png
pixelHeight: 174
pixelWidth: 950
so, it's 174x950 and I want to make give more vertical space.
(I did not have to query the size info, but I found I would always underestimate it (it's based the mac's native pixel resolution), so kept on truncating it instead).
sips test.001.png --padToHeightWidth 1000 950 --out test.002.stretched.png
and then I later pasted something else to give you an idea of the result.
if you don't specify an --out
argument, it modifies the file directly rather than copying it.
There are some offset-type parameters to sips
, maybe there is a way to put the original image top left? In any case, you can cut and paste it to move it where you want it.
