Use SSIMULACRA 2 to calculate visual similarity
One big caveat is that it doesn't work with tiff, and likely never will
When possible, cjxl/djxl are able to read/write the following image formats: OpenEXR (.exr), GIF (.gif), JPEG (.jpg/.jpeg), NetPBM (.pam/.pgm/.ppm), Portable FloatMap (.pfm), PGX Test Format (.pgx), Portable Network Graphics (.png), Animated PNG (.png/.apng), and JPEG XL itself (.jxl).
This would mean instead of roundtripping the jp2 back to tiff, we'd need to use ppm,pgm,pfm or pgx
Use SSIMULACRA 2 to calculate visual similarity
One big caveat is that it doesn't work with tiff, and likely never will
This would mean instead of roundtripping the jp2 back to tiff, we'd need to use ppm,pgm,pfm or pgx