Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example alien.png downloads as alien.webp #311

Open
sauron62833 opened this issue Feb 25, 2023 · 3 comments
Open

Example alien.png downloads as alien.webp #311

sauron62833 opened this issue Feb 25, 2023 · 3 comments

Comments

@sauron62833
Copy link

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?

@Mooldool
Copy link

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.

@lordmauve
Copy link
Owner

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.

@BruceMardle
Copy link

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

paulinetheitgirl added a commit to paulinetheitgirl/pgzero that referenced this issue Aug 31, 2023
Add a direct link to the master file in Github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants