Why am I getting the message "Not a JPEG file: starts with 0x89 0x50" when I try to open my jpg file?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
|
Your file is not a JPEG file, it's just been renamed from a PNG to a JPEG somewhere along the way. Some programs will open this as a recognised file extension and infer the type from the prefix, but obviously not the one you're using. |
|||||
|
|
The file is actually a PNG with the wrong file extension. "0x89 0x50" is how a PNG file starts. |
||||
|
|
|
This is the error response when you try to open a PNG file using a JPEG file viewer which uses libjpeg to open jpeg files. Your file is renamed from png to JPEG as mentioned in earlier answers. |
|||
|
|
|
Here is a python script to identify those fault jpg images in a directory.
|
|||
|
|
|
simply rename *.jpg to *.png. Or open this file in browser |
|||
|
|