Machriam / TheCardEditor

MIT License
0 stars 0 forks source link

Feature: Auto Zoom #42

Open TimKroeger13 opened 4 months ago

TimKroeger13 commented 4 months ago

A better zoom is needed. I want that the fitting zoom that is needed for a cardset is calculated automatically, based on the screen hight of the browser (view hight).

The zoom is hereby calculated by trying to maximise the following criteria: The width of the picture gets optimised to fill 50% of the view width, without exceeding 100% of the view hight.

Examples how it should look like: Pictures reaches hight limit before the horizontal limit: image

Picture reaches width limit before the vertical limit: image

Picture fits nearly perfect: image