Page 1 of 1

Defining the rotation center within a composition

Posted: 2010-02-21T11:48:33-07:00
by euhost
Dear IM-Users,

I have one background (theme.jpg) where i want to position an resized .jpg image (pic.jpg) on it.
Very often this pic.jpg needs to be rotated by its center point, which is driving me crazy.

The rotation is done by its bottom left corner (if value>0). I need to rotate the image by its center point.
Any hint how to do this?

Code: Select all

1. composite -geometry +70+81 \( pic.jpg[200x178] -matte -background none \) theme.jpg 
2. composite -geometry +70+81 \( pic.jpg[200x178] -rotate 20 -matte -background none \) theme.jpg out2.jpg
1. No Rotation
Image

2. rotate 20
Image

Here are the source images:
http://collage.artido.exxs.net/1/pic.jpg
http://collage.artido.exxs.net/1/theme.jpg

Thank you in advance
Matthias

Re: Defining the rotation center within a composition

Posted: 2010-02-21T13:19:28-07:00
by fmw42
convert theme.jpg \( pic.jpg -resize 200x178 -background none -rotate 20 \) -gravity center -composite theme_pic.jpg