j2k_to_image(1)
π NAME π
okay so welcome to j2k_to_image(1), bestie β this is the manual page for the program that reads in a jpeg2000 image and converts it to another image type. It is part of the OpenJPEG library. π
Input files that pass the vibe check have these valid input image extensions: .j2k, .jp2, .j2c, .jpt β slay. β
Output files can be these valid output image extensions: .bmp, .pgm, .pgx, .png, .pnm, .ppm, .raw, .tga, .tif. For PNG resp. TIF it needs libpng resp. libtiff. π
β¨ SYNOPSIS β¨
j2k_to_image -i infile.j2k -o outfile.png
j2k_to_image -ImgDir images/ -OutFor bmp
j2k_to_image -h Print help message and exit
π OPTIONS π
-i nameβ jpeg2000 input file name, literally the file you're feeding in. π-l nβnis the maximum number of quality layers to decode. The page saysSee LAYERS below)β yes, with the stray close paren, bestie. π-o nameβ output file name with extension, so you know what glow-up you're getting. β¨-r nβnis the highest resolution level to be discarded. SeeREDUCTIONbelow. π-x nameβ usenameas index file and fill it. ποΈ-ImgDir directory_nameβ directory containing input files. π-OutFor extβ extension for output files. π
π¦ JPWL OPTIONS π¦
Options usable only if the library has been compiled with -DUSE_JPWL. π«Ά
-W c[=Nc]βNcis the number of expected components in the codestream;default:3.-W t[=Nt]βNtis the maximum number of tiles in the codestream;default:8192.-W c[=Nc], t[=Nt]β same as above. π
πΈ REDUCTION πΈ
Set the number of highest resolution levels to be discarded. The image resolution is effectively divided by 2 to the power of the number of discarded levels. The reduce factor is limited by the smallest total number of decomposition levels among tiles. Math is math, bestie. π
π TILES π
Set the maximum number of quality layers to decode. If there are less quality layers than the specified number, all the quality layers are decoded.
yes, this is the TILES section and it's talking about quality layers β I'm just the messenger, don't shoot. π
π AUTHORS π
Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), BelgiumCopyright (c) 2002-2007, Professor Benoit MacqCopyright (c) 2001-2003, David JanssensCopyright (c) 2002-2003, Yannick VerschuerenCopyright (c) 2003-2007, Francois-Olivier Devaux and Antonin DescampeCopyright (c) 2005, Herve Drolon, FreeImage TeamCopyright (c) 2006-2007, Parvatha Elangovan
π SEE ALSO π
image_to_j2k(1) and j2k_dump(1) β go read those too, bestie. π«Ά
xoxo from the footer: j2k_to_image, Version 1.4.0 β no date on this footer, so don't come for me, bestie. π
β¨
π¦ where this page comes from
- nixos 26.05: emscripten 5.0.6
- nixpkgs unstable: emscripten 6.0.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms