On Tue, 24 Nov 2026 06:12:35 -0800, Lars Poulsen wrote:
> > "Can be offered in various compressions and resolutions" > Does that mean the file contains multiple variations of the image? > That would hardly make the file smaller. But maybe that is not what you > mean. >
Yes. A different number of either compression or quality levels can be specified and then stored in the same image file as different "layers." For example, using "opj_compress" from openjpeg (the usual jpeg2000 library on GNU/Linux) I can issue: opj_compress -i file.tif -o file.j2k -r 50,20,10,1 This will produce an output image containing four layers at compression ratios of 50, 20, 10, and 1 (lossless).
> > If you mean that the comprossion programs can be set to produce > diffferent sizes, that is hardly new or unique to JP2. >
The original question was about the difference between JPEG and JPEG2000 compression. Basically, JPEG only allows the user to specify the compression quality and the final file size (ratio) is set by the software. With JPEG2000 the final file size (ratio) can be specified and software will set the quality. But JPEG2000 also allows the final compression quality to be specified as well. It is a very versatile and complex format. (Perhaps that is why it is not widely employed.)