selective-php / image-type

Image type (format) detection for PHP
MIT License
7 stars 4 forks source link

JPEG HDR #38

Closed odan closed 5 years ago

odan commented 5 years ago

Jpeg HDR

Is regarded as tomorrow's format, but is not yet very widespread due to its licensing procedure.

peter279k commented 5 years ago

I can help this issue.

peter279k commented 5 years ago

@odan, the JPEG-HDR is part of the JPEG.

Please consider following situations:

I think we have two problems:

What do think about this?

peter279k commented 5 years ago

I think the third problem will not be the issue because the detection approach is different.

odan commented 5 years ago

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.

image

image

image