The dimensions are close but not equal. Measure the frame opening and keep the intended print size instead of treating the names as exact equivalents.

5x7 inches vs 13x18 cm for frames

Worked example

Image pixels1270 × 1778 px
Set the size130 × 180 mm
Retained area98.9%
Area removed1.1%
Source1270 × 1758.46 px
Effective PPI248.14
Target / 300 PPI107.53 × 150.54 mm

Calculation

Compare the source width-to-height ratio with the target ratio. Crop to fill removes the excess dimension; whole image preserves every pixel and may leave white space. The area percentage refers to pixels, not to the length of an edge. The calculation assumes a rectangular crop without rotation. Check important faces, text and edge details in the preview.

How to use these numbers

  1. Add a JPG, PNG or WebP image. Enter the intended width and height, then choose the paper.
  2. Whole image preserves every edge and may leave white space. Crop to fill fills the chosen rectangle and removes edges when proportions differ.
  3. Check all pages in the preview. Download the PDF, print at 100% and measure the control square.

Open the tool: Photo Crop Calculator

Before printing

Choose Actual size or 100% in your PDF viewer. Match the PDF paper size and measure the 20 mm square after printing.

Print PDF at actual size · Exact size printing

Sources

NIST: units of length