Hi I hope someone can help.

I'm trying to extract the X and Y of the images position, the Height
and Width of the image and also how to apply any transformation that's
required to the outputted image.

I have looked at

but I don't understand it.

Kind regards