Convert a pixel measurement to inches at any DPI.
Inches
inches = pixels / DPI. At 300 DPI, 3000 pixels equals 10 inches.
Divide the pixel value by the DPI. For example, 900 pixels at 300 DPI is 3 inches.
Pixels are a count, not a physical size. DPI (dots per inch) is what ties that count to an actual measurement — the same pixel count is a different inch size at a different DPI.