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] Scale images in a sliding overlays if the images do not have the same dimensions #42

Closed larsmaxfield closed 3 months ago

larsmaxfield commented 3 months ago

Just as relative synchronized zooming allows side-by-side images of different dimensions to be viewed at the same size (#32), sliding overlays should have an option to relatively scale their individual images.

larsmaxfield commented 3 months ago

Non-main images in sliding overlays are now scaled by the fit-in-a-box so that they appear the same size as the main image. This is complementary to the feature of relative side-by-side synchronized zooming #32.

Animation of a sliding overlay with four different resolutions of The Blue Marble.

_Photo source: Full disk view of the Earth taken on December 7, 1972, by the crew of the spacecraft en route to the Moon at a distance of about 29,400 kilometres (18,300 mi). _

This is the new default behavior. I did not add an interface setting for users to turn it off because I don't currently know of a use case where turning it off would be useful. (But if you do see a use, feel free to make a new feature request!)