qbnu
qbnu
The relevant limits are here: https://github.com/sylikc/jpegview/blob/master/src/JPEGView/MaxImageDef.h I assume the original author added these to estimate roughly how much memory would be used when an image is decompressed, but I think...
The 500 megapixel limit is to prevent integer overflow. 1024 * 1024 * 500 * 4 channels = 2097152000, slightly under the max signed 32-bit integer. To set it higher...
@sylikc I was testing PSB support using [this image](https://esahubble.org/images/heic1502a/) (69536x22230) with the limit checks commented out. I found the same issue you saw where the image is stretched and zoomed...
The colors in JPEGView look the same to me, the only difference is compression artifacts. It looks like ImageGlass just doesn't support ICC profiles for JXL.
Top: JPEGView, Bottom: nomacs. Both zoomed in to 100%. I see no difference.  
I think this is fixed in master
Looks like this was introduced between libjxl 0.6.1 and 0.7.0 (zoom in, you can see what look like artifacts on his suit). The same input JXL file was used. ```...
If I strip the ICC profiles I get these: [Original JPEG](https://github.com/libjxl/libjxl/assets/93988953/4ea713e5-49dc-4a39-a865-9539d40ce759) [JXL decoded with djxl 0.7.0](https://github.com/libjxl/libjxl/assets/93988953/5569ae62-ad60-4787-89cd-735d7481b7a2) [JXL decoded with djxl 0.6.1](https://github.com/libjxl/libjxl/assets/93988953/397d2d20-6639-4e10-86c1-30ec5f892ee1)