Closed bitsgalore closed 10 months ago
@bitsgalore You are right. At the time of development of this library, HTJ2K-related extensions were not fixed. Now we have stable names of extensions, it absolutely makes sense to adopt your suggestion. I will fix this up soon.
This issue has been fixed by #152
Both the project readme and open_htj2k_enc's helper text provide conflicting and partially inaccurate information on recognized file extensions for the output file, and their effect on the resulting file formats.
The readme says this (under Supported file types):
Whereas open_htj2k_enc's helper text says something different:
I tried out all listed extensions, and ended up with this:
Adding to the confusion here is the use of "output codestream" (both in the readme and the helper text), since this option really defines an output file. This file can either be a Part 15 codestream, or a JPH file (in which case it isn't a codestream!).
Looking at E.2.2 and E.3.2 (Registration) in ISO/IEC 15444-15:2019 (E), this lists .jph as the registered extension for JPH files, and .jhc as the registered extension for codestreams. It doesn't mention a .jphc extension, although jphc is listed as a subtype name for codestreams.
My suggestion would be to change the description of the
-o
option to "output file" (both in the readme and the helper text), and stick to these conventions for the output extensions: