(02-04-2019, 05:35 PM)programmer_ceds Wrote:(02-04-2019, 05:48 AM)Ofnuts Wrote: Not a script-fu expert, but it looks like gimp-item-transform-rotate expects a layer/channel/path, not an image. If you want to rotate the image use gimp-image-rotate.Sorry - misread the problem. Missed that the problem was about rotating the whole image.
I guess the answer is to use gimp-item-transform-rotate on each of the layers in the image. Use gimp-image-get-layers to get a list of the layers in the image and iterate through them.
Each image has only 1 layer.