diff --git a/media/images/sprites/magma-groudon-resized.gif b/media/images/sprites/magma-groudon-resized.gif new file mode 100644 index 0000000..d17ab6f Binary files /dev/null and b/media/images/sprites/magma-groudon-resized.gif differ diff --git a/media/images/sprites/magma-groudon-resized.png b/media/images/sprites/magma-groudon-resized.png deleted file mode 100644 index 5634c49..0000000 Binary files a/media/images/sprites/magma-groudon-resized.png and /dev/null differ diff --git a/scripts/dev/resize_image.py b/scripts/dev/resize_image.py index ccd55c8..113413b 100644 --- a/scripts/dev/resize_image.py +++ b/scripts/dev/resize_image.py @@ -23,17 +23,21 @@ def resize_images_in_directory(directory, new_size): for frame in ImageSequence.Iterator(image): # Resize the frame frame_resized = frame.resize(new_size, Image.LANCZOS) + frame_resized = frame_resized.convert("RGBA") + frames.append(frame_resized) # Get the duration of the frame durations.append(frame.info["duration"]) - output_path = os.path.join(directory, f"{image_name}-resized.png") + output_path = os.path.join(directory, f"{image_name}-resized.gif") frames[0].save( output_path, save_all=True, append_images=frames[1:], loop=0, duration=durations, + transparency=0, + disposal=2, ) else: # Handle non-animated images