I recently faced a problem opening some JPG images that I have downloaded somewhere over the internet, probably Twitter. So I though I’d share the problem and the simple solution.
When I tried opening an image I got the following error
Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
As the error states I was trying to open an image with a JPEG extension but which was not actually a JPEG image. To further verify this and know the actually format I ran this command in the terminal:
which will give you something like this:
PNG image data, 346 x 480, 8-bit/color RGB, non-interlaced
The solution was to imply replace .jpg or .jpeg with the appropriate format, .png in this case.