#Hupony 01/05/2025 (Sun) 09:37 Id: d32cfb No.84151 del
(666.46 KB 850x1269 ClipboardImage.png)
(933.48 KB 1180x672 ClipboardImage.png)
(1.15 MB 1185x758 ClipboardImage.png)
(13.66 KB 242x182 ClipboardImage.png)
>>84148
Woah, awesome.
Fixed aspect ratio is usually something like

img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}

The child element has its width and height set to the size of the image. Setting max-width and max-height, along with auto for width and height, seems to do the trick.
Although that gives dynamic scaling when moving the cursor