Minor bug in image preview pane when dealing with ultra high resolution images

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Peter S
Posts: 7
Joined: 13 Aug 2021 17:42

Minor bug in image preview pane when dealing with ultra high resolution images

Post by Peter S »

I get the impression that XYplorer internally scales down really high resolution images (the threshold seems to be around 100 megapixels) before displaying them in any way - the "Mouse Down Blow Up" function no longer shows a 1:1 unscaled image for example. I understand if it has to do this to conserve memory and not have performance tank completely but one other thing that also happens is that the image preview pane only gets partially filled by the rescaled image.

Here's an example of a huge image with a resolution of 41066x32704 where XYplorer internally seems to scale it down to less than 1/25th the size, with the result that it only occupies a small corner of the preview pane.
Scaled preview pane.png
Scaled preview pane.png (16.13 KiB) Viewed 594 times

admin
Site Admin
Posts: 65064
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Minor bug in image preview pane when dealing with ultra high resolution images

Post by admin »

Your image has 1,343,022,464 square pixels. That's a LOT. There is an internal threshold in XY of 41,943,040 square pixels (40 MB). I found out by experiments that larger images will make certain Windows graphics functions never return and freeze XYplorer. But I found a workaround for this in 20151208, so larger images can be handled now. However, those black areas you are seeing, well, that's indeed a bug. In the next beta version they should be gone and the thumbnail should fill the whole preview area.

Peter S
Posts: 7
Joined: 13 Aug 2021 17:42

Re: Minor bug in image preview pane when dealing with ultra high resolution images

Post by Peter S »

Great!

Yeah I know it's an absurdly large image, by far the largest I've ever come across and I saved it mostly as a curiosity. It's frankly impressive that XYplorer can even handle it. It was good for illustrating the preview pane bug though. :-)

I do have a couple of other huge panorama images though, where the preview dimensions gets cut in half, so that's how I found the bug.

Post Reply