Millisecond Forums

Unsupported image format for JPG file

https://forums.millisecond.com/Topic16265.aspx

By Blackadder - 5/11/2015

Dear All,

we have severyl JPG files which open nicely in all picture viewers including Windows Picture Viewer but produce a Direct2D error in Inquisit. I have attached one of those pictures. Can you spot the problem?

Byehttps://www.millisecond.com/forums/uploads/images/78325034-ae76-4e0e-a86c-7193.jpg, Malte
By Dave - 5/11/2015

Windows Imaging Components (WIC), which is the Windows-native codec framework Inquisit relies on, tends to dislike JPG headers which are malformed or contain additional, non-standard fields. Other viewers may render the file just fine, because they can either deal with those fields or simply ignore them. (Glancing over the image header, I believe the issue to be related to either compression and/or some EXIF stuff.)

At any rate, opening the offending images in e.g. Windows Paint (mspaint.exe) and re-saving them as JPG will fix the offending header. WIC / Inquisit should then be able to render the file just fine.
https://www.millisecond.com/forums/uploads/images/03e21a18-910a-4c65-8678-bda9.jpg
By Blackadder - 5/12/2015

Golden! Your mentioning EXIF put us on the right track. We batch-processed all images with XnView to strip out all EXIF information. Worked like a charm for our 100+ files.

Thanks a million!
Malte
By Elango - 4/23/2017

https://www.millisecond.com/forums/Uploads/Images/95faa089-fef4-42e9-b10b-eac1.jpg
By Dave - 4/23/2017

Elango - Sunday, April 23, 2017
https://www.millisecond.com/forums/Uploads/Images/95faa089-fef4-42e9-b10b-eac1.jpg

?