Aspect fit: fit an image on a screen

Enter width and height

Aspect Ratio (short: A/R) is the width of an image or screen, divided by the height. In landscape orientation, the A/R is > 1, for portrait orientation the A/R is < 1 and for square screens, this is = 1.

Input

Image Dimensions
540 x 810
A/R: 0.667
Screen Dimensions
1280 x 1024
A/R: 1.25
Aspect fit: how much of the screen/image is actually used
53.4%

Image is padded

Image is pillar-boxed
(black is added left and right to fill the screen)

Screen: 800 x 640

Actual pixels used

  • Full image resolution = 540 x 810
  • Is rescaled to = 684 x 1024 (127%)
  • and then padded to 1280 x 1024 (187%)
  • Compare

    Photo calculators & converters

    Aspect ratio
    Image Width x Height → aspect ratio
    Aspect Fit
    Fit an image on a screen
    Composition Calculator
    Focal length, distance, crop factor → image composition
    Depth-of-Field Calculator
    Aperture, focal length, distance, crop → depth-of-field
    DPI calculator
    Print Width x Height and dpi → megapixels
    Image filesize calculator
    Image Width x Height JPG/RAW/PNG → bytes
    Light calculator (EV)
    Aperture, shutter time, ISO → Exposure Value
    Megapixel calculator
    Image Width x Height → megapixels
    Megapixel Aspects
    See megapixels in different aspect ratios
    Portrait distance
    portrait distance, composition, crop factor, focal length