问题
So, I have this background image:

And I have a 1px x 1px image that I want to overlay on that. If I run:
convert bg.png \( -size 80x240 -background none -rotate 30 -geometry +120+88 tile:red.png \) -composite result.png
I get this:

But I want to rotate it with fixed center. The expected result should be something like this:

Do you know how can I accomplish that?
Thank you.
回答1:
Looking into the comment by @frostyterrier I think his problem is he needs +distort and is using -distort?
This page should help: http://www.imagemagick.org/Usage/distorts/#srt
Rotate an image and have a transparent background
convert input.jpg -background none -virtual-pixel background +distort ScaleRotateTranslate 30 output.png
来源:https://stackoverflow.com/questions/15071640/how-to-rotate-a-composite-image-with-fixed-center