pgzero icon indicating copy to clipboard operation
pgzero copied to clipboard

Example alien.png downloads as alien.webp

Open sauron62833 opened this issue 2 years ago • 3 comments

I'm trying to follow the introduction, and hitting a problem at this point: https://pygame-zero.readthedocs.io/en/stable/introduction.html#draw-a-sprite

When I download the alien.png sprite, it downloads as alien.webp. This is a different format that I don't think Pygame Zero can use?

It can be downloaded fine from here: https://github.com/lordmauve/pgzero/blob/38cb6021496bd2f9dae0b37ef3ee6304dee71e2f/doc/_static/alien.png

I guess this is something to do with how your website is being generated?

sauron62833 avatar Feb 25 '23 16:02 sauron62833

Im not sure why its that way but you can use file converting services to change it to supported file formats. Just search "webp to png" and don't click ads.

Mooldool avatar Mar 24 '23 08:03 Mooldool

I think ReadTheDocs has adopted a CloudFlare proxy that is re-encoding PNG files to WebP.

Pygame 2 actually supports WebP; we would just need to add .webp to the file extensions that Pygame Zero searches for when loading images.

Either way I think we need to change the instructions in the docs.

lordmauve avatar Mar 30 '23 09:03 lordmauve

Just noticed the same problem. It used to work. PS I hate .webp!

BruceMardle avatar May 21 '23 11:05 BruceMardle