Skip to content

Encoded file extension. Is J2C ok? #1625

@nlw0

Description

@nlw0

What exactly is the format of the encoded files? The man page suggests either jp2 or j2k:

Valid output image extensions are
.B .j2k, .jp2

Yet the files produced have a magic number in the beginning: ff 4f ff 51. In every reference I've found this would be "codestream" data, and the suggested extensions are different ones, eg "j2c". The extension "jp2" would be associated with a file format that has a different magic number.

I'm no jpeg2000 expert, just trying to understand the differences. Would it be ok to name the output of opj_compress with a "j2c" extension? Are these files actually interchangeable with whatever other jpeg2000 files that have a different magic number?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions