I received a lot of pictures that I want to edit on Photoshop. When I attempt to open them in Photoshop,The following pops up:

"Could not complete your request because an unvalid SOS, DHT, DQT, or EQI JPEG marker is found before a JPEG SQ1 marker."

I found a solution which is to open the file in Microsoft Paint, and save them under the same name, which rewrites the file. Now Photoshop can open the file. This is a lot of work to do for every image.

How do I fix this? I can't believe that MS Paint can do it, but Photoshop can't.


As pelms' answer indicates, the problem is typically a mismatched filename extension. Irfanview is good for this problem. It's a free image viewer, editor, organiser and converter program. If you open an image that has an incorrect extension, it will recognize the problem and usually recognize the actual image type. It will ask you if you want to fix the filename, and handle it for you. It's a fast, automated solution requiring a couple of mouse clicks, and saves the need to manually investigate the file header in a text editor.

  • This works. No upvote??!! – Soon Santos Jun 5 '19 at 23:22

Sounds like you have a file extension that doesn't match the actual file type.
For example, if you take a PNG image file, change the file extension to .jpg and try to open in Photoshop, you'll get a message something like:

"Could not complete your request because an unknown or invalid JPEG marker type is found"

Try opening a file in a text editor (e.g. Notepad). JPEGs should start with the characters
ÿØÿá, PNGs with ‰PNG and GIFs with GIF87a or GIF89a.

If this is the case for you, try renaming with the correct file extension.

  • JPEG files may always begin with ÿØÿá, but the more easily remembered marker (in my opinion) is that bytes 6-9 always contain JFIF (JPEG File Interchange Format). – Scott Jan 13 '19 at 0:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.