I need some help with rotating a layer from a GIMP image
Posted: 2016-08-27T20:10:37-07:00
Hello!
In the end I'd like to be able to rotate the layer while keeping the same image dimensions and if possible crop it to the image. I know I'm asking a lot!
My GIMP image is pretty basic, it has a transparent background layer and a transparency layer above it which this is the one I'm rotating.
I wrote a simple little script to do the work but the out come is that the layer does get rotated but the image its resized. It looks rather funky and If I go an load it (the png) it gives me choices about the png offset which makes sense.
So ... how do I rotate the layer while keeping the images size of 300px x 300px at the same time respecting it's transparency?
I'm always grateful for the help! And this will be my one new thing learned for the day!
Thank you, once again!
In the end I'd like to be able to rotate the layer while keeping the same image dimensions and if possible crop it to the image. I know I'm asking a lot!
My GIMP image is pretty basic, it has a transparent background layer and a transparency layer above it which this is the one I'm rotating.
I wrote a simple little script to do the work but the out come is that the layer does get rotated but the image its resized. It looks rather funky and If I go an load it (the png) it gives me choices about the png offset which makes sense.
Code: Select all
#! /bin/bash
d=0
while [ $d -lt 361 ]; do
printf -v n "%03d" $d
convert test_b_wind_icon.xcf[1] -rotate $d ./new/b_$n.png
((++d))
done
I'm always grateful for the help! And this will be my one new thing learned for the day!
Thank you, once again!