So, you want to place one image over another, with the top image rotated about its centre, with the centre at a fixed position on the bottom image.
For example, the bottom image is 1500x1000 red pixels, and the top is the built-in "logo", and we want the centre to always be at (200,200) on the bottom image.
Windows BAT syntax:
Code: Select all
%IM%convert ^
-size 1500x1000 xc:red ^
( -virtual-pixel None logo: +distort SRT 1,0 -repage "+200+200^!" ) ^
-layers merge m0.png
%IM%convert ^
-size 1500x1000 xc:red ^
( -virtual-pixel None logo: +distort SRT 1,30 -repage "+200+200^!" ) ^
-layers merge m1.png
%IM%convert ^
-size 1500x1000 xc:red ^
( -virtual-pixel None logo: +distort SRT 1,60 -repage "+200+200^!" ) ^
-layers merge m2.png
Set the angle (0, 30, 60) to whatever you want.