Method and worked example
At 300 PPI, 6000 × 4000 pixels give 50.8 × 33.9 cm (20 × 13.3 in). Required pixels round upward on each axis. The resulting pixel ratio and densities are shown because integer rounding can slightly change the aspect ratio.
Physical size in metres = pixels / PPI × 0.0254. Required pixels = ceil(size in metres / 0.0254 × PPI). An inch is exactly 2.54 cm. No camera preset or print-quality threshold is assumed.
Image PPI is pixels per inch; printer DPI is output dots per inch, a different quantity. Focus, captured detail, compression, viewing distance, paper/media and the printer workflow affect suitable resolution. No universal quality score follows from PPI alone. Needed pixels do not prove that detail exists; upscaling cannot restore lost detail. Confirm export size and resolution with your printer and crop separately.
Width and height keep the entered orientation. No automatic crop or resampling. PPI describes image sampling, not measured print quality.
PPI: 1–10,000; pixels: 1–1,000,000 (integers); lengths: 0.1–10,000 cm or the equivalent in inches.