2
votes

I am going to rotate a gif image with transparent color. But after the rotation, the image loses the transparency and has a non-transparent background. How could I do it correctly with both transparent color and transparent background?

Here is my command:

convert test.gif -alpha set -rotate 30 -background transparent rotate.gif

Thanks.

1

1 Answers

3
votes

Use "-background none". Like so:

convert -background none -rotate 30 test.gif rotate.gif

This should preserve any transparency in your original image, while making the extra canvas real estate that isn't covered by your original image transparent as well.