Page 1 of 1

Translate + compose two images

Posted: 2019-06-29T23:48:27-07:00
by dkrikun0
I have 2 images, a small and a big one. I would like to perform an SRT distortion (including translation) on the small image, and then compose it with the big one. The point is, I would like to translate the small one by an amount in the bigger image coordinates, so that the small image is not cut whatsoever.

I can do it with first extending the small one (using -extent) to the bigger image dimensions, but is there a more straightforward way to do it?

Re: Translate + compose two images

Posted: 2019-06-30T03:35:10-07:00
by snibgo
Perhaps the "+" form, "+distort SRT" does what you want. See http://www.imagemagick.org/script/comma ... hp#distort

Re: Translate + compose two images

Posted: 2019-06-30T10:31:58-07:00
by fmw42
Please show your command line code. It is hard for us to suggest solutions when we do not know what you did. Note that distort SRT allows translation. Also please always provide your IM version and platform when asking questions since syntax may vary.