2

I have been trying to edit photos that I received in Whatsapp in Photoshop. But while I try to open such images in Photoshop, it throws me an error like in the image. But now I can add those images by applying a trick. But still, I don't know the reason why Photoshop can't open? Any explanation of the error.

Error image

3
  • 1
    What image format are we talking about (jpg, png, webp,...)? Can you provide a small example image? How old is your Photoshop version?
    – Robert
    Jan 12, 2020 at 13:18
  • I have used JPEG. I have Photoshop 7. But same problem I have faced in CS6 also.
    – R.Medhi
    Jan 13, 2020 at 4:43
  • I have created an open source tool for Windows and MacOS, to fix broken jpeg files. You can check and download it here: github.com/cdefgah/whatsapp-jpeg-repair
    – user1263607
    Jan 18, 2021 at 22:26

1 Answer 1

3

I have run into the same thing.

If you export the image from WhatsApp to a file the exported JPG file is just fine, but when you open it straight from WhatsApp into other software the image may not be loadable by other software.

The image, internally generated by WhatsApp, is not a fully compliant JPG image. It seems WhatsApp stores internally only the bare essentials of what it needs (probably not even in JPG format). This internal data when converted on the fly into a JPG doesn't generate a correct JPG. Other software (like Adobe tools) that expect a JPG to fully adhere to the specification will complain about it. That is what that error message is telling you.

Software that is less critical about the JPG specification may still be able to load that image without complaining. Adobe is really picky about this and refuses to load the whole image on the slightest error even if that error doesn't actually affect the image content.

When WhatsApps exports the image to file it apparently does write a well-formed JPG image, so the exported file is usable by Adobe.

WhatsApp having 2 different JPG generators with slightly different behavior is a bit strange, but not unusual in big software projects.
2 teams working on different parts of the software select different solutions to the "create a JPG" problem. Later on it just takes too much time and effort to merge those back into a single solution so the end-product ends up with 2 modules that do essentially the same thing.

2
  • 1
    I have created an open source tool for Windows and MacOS, to fix broken jpeg files. You can check and download it here: github.com/cdefgah/whatsapp-jpeg-repair
    – user1263607
    Jan 18, 2021 at 22:26
  • Imagemagick can help. convert image.jpg -resize 100% outfile.jpg Seems to work fine, in order to recreate a valid JPG from WhatsApp weird format. For many files, it could be replaced by mogrify. May 21 at 12:31

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