Today I was reading an article online and while looking at the photo accompanying it I noticed some chromatic aberration that I found interesting (wanted to figure out if it was a camera artifact or added as a post effect), so I decided to take a closer look in Photoshop.
However, when I tried to open it, I got this error:
Could not open “Security_zoom_1137878047.jpg” because an unknown or invalid JPEG marker type is found.
In this particular case I don't need to edit the photo, and if I did I could always just take a screen shot (as I did of the 'H' above). But it got me thinking maybe I should learn how to work with these kinds of images, and maybe even learn how to make them.
When opened in TextEdit the file begins with this:
So, finding it odd that web browsers can display this file but an image editor can't, I did some searching and found a page that offered some clues. The page is titled Viewing a WEBPVP8 image in a RIFF file (it is not https:// so I'm not linking to it, but you can find it with a search engine). Although the gist of it is: It's a WEBPVP8 image (is that the same as WebP?) and it can be opened in a browser, but not Photoshop.
Also, as a test I converted this image to a regular JPEG using https://ezgif.com/webp-to-jpg
The resulting file can be opened by Photoshop.
Now knowing I can convert and open such files, my remaining questions are:
- What kind of file is this really, JPEG or WebP with a .jpg extension?
- Under what circumstances would someone save a file in this format?
- How would one save a file in this format?