开发者

In place rotation of overlay image on the background with ImageMagick

开发者 https://www.devze.com 2022-12-09 22:27 出处:网络
I have a small (100x80) overlay image which will be placed at x=40, y=50 on a transparent background(800x600) and then rotated 80 degrees in place.

I have a small (100x80) overlay image which will be placed at x=40, y=50 on a transparent background(800x600) and then rotated 80 degrees in place.

convert  -size 800x600 xc:none -background transparent m01.jpg -rotate 80 -geometry +40+50  -composite final.png
开发者_如何转开发

rotates the merged image. how can i rotate only the overlay image in place(over the background at +40+50)?


found out that the layer specific operations need to be grouped by ()

convert -size 800x600 xc:none -background transparent \
 \( -page +40+50 01.jpg -rotate 80 \) -flatten final.png
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号