I'm trying to use the lossless compression capability of the JPEG2000 format in Mathematica 12.2. I've consulted the online documentation for the syntax to specify the lossless setting. However, there is no change in export file size when I use the “Lossless” setting vs. the “JPEG2000” (lossy) setting, which makes me wonder what’s going on. Also, the “ImageEncoding” text in my code remains blue after executing it, which makes me suspect that it is being ignored. Here is a snip from my code of the relevant command:
Table[Export[exportString[[i]], imageStack2[[i]],
ImageEncoding -> "JPEG2000"], {i, 1,
Dimensions[imageStack2][[1]]}]];
I'd be grateful for any insight anyone could provide as to what I might be doing wrong.