selective-php / image-type

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

Detect IIQ (Phase One, Mamiya) RAW images #14

Closed odan closed 5 years ago

odan commented 5 years ago

IIQ RAW S and IIQ RAW L

IIQ RAW stands for Intelligent Image Quality RAW. It is an intelligent way of turning the full 16 bit image data captured by the camera into a compact RAW file format.

The IIQ Large RAW format is unique because it is completely lossless. IIQ RAW Large can be processed into a 16 bit TIFF, even though it is only half the size of a traditional RAW file.

The IIQ Small RAW format is based on the full 16 bit data that is captured by the digital back’s CCD. However, unlike IIQ RAW Large, it is not 100% lossless. Most users will not notice any quality difference between the two file formats especially if the IIQ RAW Small format capture is well exposed and set on a low ISO rating.

Extension: iiq or tiff

Identification

Since IIQ Raw is structurally identical to a TIFF, magic-based identification tools like Unix file and Apache Tika identify these files as image/tiff. Exiftool is able to correctly identify the format:

odan commented 5 years ago

This format cannot be clearly identified as IIQ. Instead only TIFF will be return.