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.
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
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
Don't hate me, but can't you just change the extension to .jpg?
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.
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
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.Adding
?pngat the end of the image URL may helpSimply 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 toimage.zipand, if you opened it in an appropriate program, it would read the header and still render it properly