/display/TR/Files identified as JP2 are really JPX taken on 2012-12-05.
The original wiki at wiki.opf-labs.org is being decommissioned.
Files identified as JP2 are really JPX
Description
Some software applications produce JPX (JPEG 2000 Part 2) files that are superficially indistinguishable from JP2. This applies, for example, to the Adobe JPEG 2000 plugin that comes with Adobe Photoshop (add version). In principle, JPX files can be distinguished from JP2 by the value of the brand field in the File Type Box. For JP2 this is 'jp2 ' (0x6a70 3220). The specification of JPX (15444-2annexm.pdf
) states that a value of 'jpx ' (0x6a70 7820) shall be used for "files that are completely defined by" JPEG 2000 Part 2. However, if applications ignore this, such JPX files can be easily mistaken for JP2s.
Risks
The main risk is that materials may be ingested that contain advanced features of JPX, even though identification tools will identify these as JP2. Since software support for JPX is still minimal, such files may not be rendered properly, and future migrations may result in loss of information (colour space information is particularly affected by this).
Assessment
Files that contain features that are not permitted in JP2 will not pass validation by Jpylyzer.
| Tool | Affected if expression returns True |
| Jpylyzer | "/jpylyzer/isValidJP2 = 'False'" |
Check value of brand field
| Tool | Location in output |
| Jpylyzer | "/jpylyzer/properties/fileTypeBox/br" |
Recommendations
Pre-ingest
Identify files that are affected by this problem using Jpylyzer and do not accept them.
Existing collections
- Identify files that are affected by this problem using Jpylyzer.
- Document the issue and the associated risks, and mark affected materials in metadata.
- Normalisation of affected files to 'proper' JP2s may be considered for important collections (but this would require careful planning and risk assessment).