Class: size
Makes it easy to recalculate image dimensions
Methods
-
size::fit
Fits width and height into a defined box and keeps the ratio
-
size::fit_height
Fits width and height by a passed height and keeps the ratio
-
size::fit_width
Fits width and height by a passed width and keeps the ratio
-
size::ratio
Gets the ratio by width and height