[IFD1 (thumbnail)] at offset 64, 3 entries
0x0103 Compression LONG count=1 inline (6,) <-- WRONG TYPE, expected SHORT
0x0201 JPEGInterchangeFormat LONG count=1 inline (106,)
0x0202 JPEGInterchangeFormatLength LONG count=1 inline (1891,)
All clear now. I simply misunderstood your previous post. I was looking for KEY 0x0103 as LONG while you meant its VALUE (6). So, your AI was right. Here they are:
00000a0 00 03 01 04 00 01 00 00 00 06 00 00 00 01 02 04
00000b0 00 01 00 00 00 6a 00 00 00 02 02 04 00 01 00 00
If someone is interested how to repair such files: as JPEG compression is lossy, we must re-write matadata only while leaving image data intact.
This command reads metadata and writes them back:
c:> exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile plomyki.jpg
The result is attached. Viewer shows it properly.
Thank you for your support. I definitely learned something new.