from PIL import Image # Load your ferris wheel PNG img = Image.open("FerriswheelnoBG.png").convert("RGBA") frames = [] num_frames = 36 # more frames = smoother rotation for i in range(num_frames): # Rotate the image rotated = img.rotate(i * (360 / num_frames), resample=Image.BICUBIC, expand=True) # Convert to paletted mode for GIF frame = rotated.convert("P", palette=Image.ADAPTIVE) frames.append(frame) # Save as animated GIF frames[0].save( "ferriswheel_spinning.gif", save_all=True, append_images=frames[1:], duration=80, # ms per frame (lower = faster spin) loop=0 # loop forever ) print("GIF created: ferriswheel_spinning.gif")
top of page
  • White Facebook Icon
  • TikTok
  • White Instagram Icon
Premium msp

Premium msp

Premium msp

More actions
bottom of page