imgFit

Proportionally resize images so the complete image fits inside the requested maximum width and height. No cropping, stretching, or distortion is performed.

Function

imgFit(width=1920, height=1080, online_urls=None, desktop_paths=None)

Sources

Output

Redrawn images/
├── Folder Images/
├── Online Images/
└── Desktop Images/

Behavior

The width and height are maximum boundaries. The image is resized with its original aspect ratio preserved and the complete image kept visible. High-quality Lanczos resampling is used.

See imgFit.md in the source distribution for the complete parameter and behavior reference.