462
you are viewing a single comment's thread
view the rest of the comments
[-] switcheroo@lemmy.world 2 points 4 days ago

Don't hate me, but can't you just change the extension to .jpg?

[-] morrowind@lemmy.ml 15 points 4 days ago

No, it's a different format underneath.

Occasionally it'll work, cause an app will use a library that supports webp but forget to add it to the file picker (or deliberately don't want it) but generally no.

[-] Hazmatastic@lemmy.world 2 points 4 days ago

Just had this experience with some .png files I downloaded. Apparently Chrome, which i used on my work computer to get some game files, downloads images in .webp by default. Even if specifically saved as other formats. Game wouldn't recognize my pngs until I changed them back to .webp like you described, opened them in PS, and exported as .png. The filetype does some funky stuff

[-] SteveTech@aussie.zone 3 points 4 days ago

Apparently Chrome, which i used on my work computer to get some game files, downloads images in .webp by default.

Some servers will serve webp to supported browsers to save bandwidth, even if the URL ends in .png. So its not Chrome's default, its the website.

[-] Axolotl_cpp@feddit.it 2 points 3 days ago* (last edited 3 days ago)

Adding ?png at the end of the image URL may help

[-] ICastFist@programming.dev 3 points 4 days ago

Simply changing the extension wouldn't work because each image type has a specific header - even changing a .png to .jpg wouldn't work - and organizes the actual image data in different ways.

The header is what actually identifies the file type. For webp, it's called the RIFF header and it must be 21 bytes (it's a standardized specification, btw). For jpeg, the header is only 2 bytes and has the values FF D8. In theory, this means that you could even rename the file to image.zip and, if you opened it in an appropriate program, it would read the header and still render it properly

this post was submitted on 25 Mar 2026
462 points (100.0% liked)

simpsonsshitposting

5181 readers
166 users here now

I just think they're neat!

founded 2 years ago
MODERATORS