Rotating then inserting an image inside another one
Posted: 2016-05-23T02:32:36-07:00
Hello,
I have this image: http://imgur.com/5CXPTNr (don't know why I can't use \[img\])
I rotate it using a script and then I insert it on top of this one:

However when I rotate the png file
then try to insert it
... the file isn't positionned correctly. It should however always be at the same place (-geometry +695+325), no? Well here are two results I obtain, for example:

and

Can you guys explain me what's going on and how to insert my input2.png always at the same place in the original image, after the rotation?
Thanks a lot
I have this image: http://imgur.com/5CXPTNr (don't know why I can't use \[img\])
I rotate it using a script and then I insert it on top of this one:

However when I rotate the png file
Code: Select all
convert /tmp/input.png -background transparent -rotate $angle /tmp/input2.png
Code: Select all
convert /tmp/background.jpg /tmp/input2.png -geometry +695+325 -composite /tmp/result.jpg

and

Can you guys explain me what's going on and how to insert my input2.png always at the same place in the original image, after the rotation?
Thanks a lot