Printing at true size from the web: mm layouts and the PNG pHYs chunk

javascript dev.to

If you generate anything that has to be printed at an exact physical size (passport photos, labels, stickers, name badges), you hit two problems that screen work never prepares you for: Your layout has to be in millimetres, not pixels, and it must never "shrink to fit". The file has to tell the printer its physical size, or it opens at whatever DPI the viewer guesses (usually 72 or 96) and prints at the wrong size. I ran into both while building a print-sheet tool for passport photos, where

Read Full Tutorial open_in_new
arrow_back Back to Tutorials