You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
-o: Output codestream .jhc or .j2c are recommended as the extension.
I tried out all listed extensions, and ended up with this:
Extension .jphc results in a JPH file, not a codestream
Extension .jhc is not recognized at all, and results in "ERROR: invalid extension for output file"
Extensions .j2c and j2k both result in a raw codestream (as expected)
Extension .jph results in a JPH file (as expected)
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:
.jph extension triggers JPH file creation
.jhc extension triggers HT codestream creation (optionally with .j2c and/or .j2k as aliases)
drop the .jphc extension altogether (since it's not meant to be used as a file extension)
The text was updated successfully, but these errors were encountered:
bitsgalore
changed the title
Documentation of supported output file extensions and their effects doesn't reflect enoder behaviour
Documentation of supported output file extensions and their effects doesn't reflect encoder behaviour
Oct 24, 2023
@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.
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:The text was updated successfully, but these errors were encountered: