I am trying to make a gif of the following icon rotating :
To attempt to achieve this I am running the following code in Python using the Pillow library :
from PIL import Image, ImageDraw
images = []
icon = Image.open("cameraIcon.png")
for i in range(0, 360):
images.append(icon.rotate(i))
images[0].save('loadingIcon.gif', format='GIF', save_all=True, append_images=images[1:], duration=40, loop=0, transparency=0)
However the output of this code does not match what I want, I get the following gif :
I don't know what is happening and would appreciate any help, thank you.


