Closed odan closed 5 years ago
I can help this issue.
@odan, the JPEG-HDR
is part of the JPEG
.
Please consider following situations:
JpegDetector
will detect this image format firstly and return the detection result is JPEG
.
And it will not detect the JPEG-HDR
correctly.I think we have two problems:
JPEG-HDR
and JPEG
have the same image extension name.JpegDetector
class and avoid JPEG
formats detection incorrectly.What do think about this?
I think the third problem will not be the issue because the detection approach is different.
Yes, JPEG-HDR is quite identical to the classic JPEG.
But JPEG-HDR is an extension, and uses APP11 segments.
I would suggest we are trying to extract the ver
(JPEG-HDRVersion) information from the APP11
JPEG Tag of a JPEG-HDR image. If this tag exists, we asume that it's a JPEG-HDR. I'm aware of the fact, that there are JPEG-HDR file without this tag, but for the most files this should be the case.
https://sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html#HDR
https://commons.wikimedia.org/wiki/File:HDRI_Sample_Scene_Window_(JPEG-HDR).jpg
JPEG markers begin with 0xff
APP11 (JPEG-HDR) marker: 0xeb
If the APP11 (JPEG-HDR) marker 0xff0xeb
exists, it should be a JPEG HDR image.
HDR_RI
.
Jpeg HDR
Is regarded as tomorrow's format, but is not yet very widespread due to its licensing procedure.