DPI & Print Size API
Resolution, print-size and pixel-density maths for print, design, photography and screens. The resolve endpoint takes any two of pixels, DPI and physical length and computes the third, returning the size in inches, centimetres, millimetres and points — so you can answer "how big will a 3000-pixel image print at 300 DPI" or "what DPI do I get printing 3000 px at 10 inches". The ppi endpoint computes a screen's pixel density from its resolution and diagonal size, plus the dot pitch in millimetres, the total megapixels and the aspect ratio. The convert endpoint converts a length between pixels, inches, centimetres, millimetres and points (PostScript points, 1/72 inch), using a DPI when pixels are involved. Everything is computed locally and deterministically, so it is instant and private. Ideal for print and prepress, graphic and web design, photography, and screen and display specs. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is DPI and print-size maths; for aspect ratios and resizing use an aspect-ratio API and for general unit conversion use a unit API.
api.oanor.com/dpi-api