I try to create a collage by inserting several images into one big image. The smaller image are getting translated and rotated.
Here is an example:
The background image is 200x300 pixels big and white. The smaller image is 100x100 pixels big and grey.
The smaller image should be horizontaly centered in the upper third of the image. The center of the grey image should be at position 100, 100 and rotated by 45 degrees.
If I try this:
Code: Select all
convert collage.png "(" grey.png -virtual-pixel transparent +distort SRT 45 ")" -geometry +50+50 -composite withPlusDistort.png
Here the position is wrong, but the grey image is not beein cut off.
If I try this:
Code: Select all
convert collage.png "(" grey.png -virtual-pixel transparent -distort SRT 45 ")" -geometry +50+50 -composite withPlusDistort.png
Here the position is correct, but the grey image has been cut off.
Does anybody know, how to archieve the correct result like seen below?
Thank you very much,
Christian