View Full Version : GIMP Script Request - Arbitrary Rotate on Entire Image

01-14-2011, 04:40 PM
Hi Guys,

This probably goes out to RobA but if there are any other GIMP scripters around, could you help me with this?
This is the mechanism I'm following on image after image and it seems just silly not to script it:

Get rotation angle R.
For each layer (AND channel) in image:
-Arbitrarily rotate the layer by R degrees (default center is fine)
-Layer to image size

I have to believe this would be a 7-line or less script-fu, but unfortunately I'm still on painkillers and learning a new programming language is beyond my befuddled brain. Help? Pretty please?

01-14-2011, 08:51 PM
Not a script, but have you tried:
a) Chain all layers, channels and paths (holding down the shift key when clicking the chain symbol to chain all layers in one operation)
b) Select any layer and rotate it. All the other layers, paths and channels will be rotated the same amount around the same center.
c) Crop the image to the current image size to eliminate the layer/channel/path regions outside of the current image size.

01-14-2011, 09:13 PM
Well that is certainly a lot less work than I was doing! Thanks a ton, that worked beautifully! Have to do this with 71 pieces of image, so you've saved me tons of time!