[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

Error loading JPG images

I have found hard error loading files in JPG format.
The files contains images with ICC profiles or with YCMK components.
The main problem is that the error break system excecution with Protection faults.
The error ir related with HighGUI's LoadImage() function and occurs inside JPEG reader.

What is the real problem?

The real problem is that the library crashes.
Solving th eproblem can be returning an invalid image handle (zero) for signaling an error while loading.

Here I attach sample images:

Note:The images are not shown by web browsers because they do not manage ICC schemes.
To download the image samples please press the [Attachments] link at the top of this page.
Uploaded Image: ycc.jpg
Uploaded Image: CMYK.jpg