olive-groves / butterfly_viewer

Side-by-side image viewer with synchronized zoom and sliding overlays. Drag and drop to instantly compare multiple images on your desktop. Very open source.
https://olive-groves.github.io/butterfly_viewer/
Other
22 stars 3 forks source link

[Feature] Smoothing of the image when it is not at 100% #65

Open NEKolev opened 2 months ago

NEKolev commented 2 months ago

Is there an existing request for this feature?

Is your feature request related to a problem?

It would be good to add a view of the image when it is not seen at 100%.

image

326418026-256f46a6-8b0a-4cc8-9e9c-8957eef18a38

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Anything else?

No response

larsmaxfield commented 2 months ago

If I understand correctly, your request is to have images be smoothed when they are zoomed <100% in the Viewer because they currently appear jagged and pixel-y, especially those with higher resolutions like the image you added?

Unfortunately this a known upstream issue with the Viewer's use of PyQt's QGraphicsScene and QGraphicsView:

I don't currently have time to solve this, but I agree it would be a good feature.

*For images overzoomed >100% in the Viewer, you can turn on Upsample when zoomed by right-clicking the image and selecting the option in the menu:

image

larsmaxfield commented 2 months ago

Implementation notes:

It appears the two routes are to reimplement the paintEvent for better downsampling and antialiasing, or to create and cache downscaled versions of the image and load those based on zoom.