d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.05k stars 474 forks source link

Minimal/Maximum window size for window fit zoom #1926

Open Elypha opened 1 month ago

Elypha commented 1 month ago

System information

Describe the feature

It's not a very original idea and maybe I just didn't find it but if it's not:

Currently, the window fit zoom mode resize the window to actual image resolution. I hope to have an option to limit the size of window to no smaller than a configured resolution, and another option for no larger than.

How to use feature

2024-05-28_08-38-19_294 it's just my first thought on this and it could be like two combo boxes that accept string input in the formart of:

for example:

Limit the window size to no smaller than { 200 } width { 200 } height Limit the window size to no larger than { 80% } width { 0 } height

especially for no smaller than, centre the small image and zoom at 100% and leave white space around it