Fit an 800 by 600 image inside a 400 by 400 box
- Input
- Width (W): 800 Height (H): 600 Resize mode: Fit inside box Target width: 400 (Target height updates to 300) Box width: 400 Box height: 400
- Result
- Simplified ratio: 4 : 3 Closest named aspect ratio: 4:3 · Classic display Exact match Decimal ratio: 1.3333:1 GCD: 200 Nearest preset: 4:3 Scaled result: 400 × 300 Scale: 50% Remaining padding: 0 × 100
- How to check it
- The greatest common divisor of 800 and 600 is 200, giving a width:height ratio of 4:3. Fit scales 800 × 600 to 400 × 300 inside 400 × 400, leaving 100 units of total vertical padding.