Failed to decode image (Format error decoding Jpeg: Error parsing image. Illegal start bytes:8950)

Hello Forum,

I have a strange problem with my document.

If I import a special image, I am getting the following error:

failed to decode image (Format error decoding Jpeg: Error parsing image. Illegal start bytes:8950)

This is my MfE code:


#image("LifeTime_Profile.jpg", width: 50%, height: auto, fit: "cover")  // Works
#image("LifeTime_Profile_.jpg", width: 50%, height: auto, fit: "cover") // Fails

The two images below (no idea if they will be recoded if I post this) look the same, but they are not.

The error appears with LifeTime_Profile_.jpg only.

This image works in any other image editor/viewer I have and just saving it again (recodes the jpeg) made it work.

WHY!

Running Tinymist 0.15.8 in VSCode under Windows 11 or the current CLI compiler v.0.15.1 makes no difference.

If you rename this file as a.png, does it work with Typst?

https://deepwiki.com/search/failed-to-decode-image-format_f2c36f75-f81b-45a3-baff-4b67d8cf6626?mode=fast points out that 89 50 is the PNG magic signature.