Closed Pneu-matic closed 2 years ago
Why are you checking the width of the image to make sure they're the same? Would a different calculation make more sense?
It's to check if it's dealing with the link spritesheet.
Ah ha, gotcha.
That's also why the image load is inside the if statement. If it tries to load a .zspr, PIL doesn't recognize it and it crashes.
I called the filename in export_all_images_to_PNG to get the original image. There must be a better way, but it seems to work.