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:
file file_name.jpg
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.
References
I can’t open .jpg files, what to do?, Ask Ubuntu
Why am I getting the error: “Not a JPEG file: starts with 0x89 0x50”, StackOverflow
Thanks for that! It just happened to me & this worked a treat!
Cheers
LikeLike
Welcome. Glad it helped. This post is getting a lot of traffic by the way.
LikeLike
I tried that command on my unviewable .jpg and all I was told was “JPEG image data” but I still can’t view the .jpgs. Still annoyed with my gnome. Any further assistance would be appreciated.
LikeLike
Hello zmitchell. Thank you for your comment. Are you sure the image is not corrupted? Did you try opening it under another system or OS?
LikeLike