Actual Size Lab guide

Methodology, formulas and limits.

The calculations are simple; the print workflow is not. This page documents both what the tool controls and what it cannot.

Scope of the project

Actual Size Lab solves a narrow problem: translating an image's pixel dimensions into a requested physical placement on an A4 PDF and explaining the settings needed to preserve that placement while printing.

It is not a colour-management system, printer driver, image editor, passport-photo compliance checker or calibrated measuring device.

Unit conversions

1 inch = 25.4 millimetres
1 centimetre = 10 millimetres
1 PDF point = 1/72 inch

The site keeps millimetres as the internal physical unit, then converts to inches for PPI and to PDF points for page placement.

Aspect-ratio handling

The source aspect ratio is source width divided by source height. When the user enters a physical width, physical height equals width divided by that ratio. The image is therefore scaled uniformly rather than stretched.

Effective source PPI

effective PPI = source width in pixels ÷ requested width in inches

The result measures source-image sampling at the requested size. It does not claim to be the printer's ink-dot resolution.

PDF construction

The browser resamples the placed image to the selected sampling value, converts it to a high-quality JPEG stream on a white background and embeds it into a minimal PDF 1.4 document. The page MediaBox is A4 in points. Placement coordinates are calculated from the requested millimetres and centred on the page.

The optional reference line is 100 mm in PDF coordinates. It is intentionally simple so a physical ruler can reveal page-level scaling.

Local processing model

File selection uses a temporary object URL. Decoding, resampling and PDF assembly happen in browser memory. There is no image-upload API in this static package. The temporary URL is revoked after use or disappears when the tab closes.

Hosting infrastructure can still receive ordinary request metadata such as IP address, user agent and requested URL. Those requests deliver the website files, not the selected image.

Rounding and numerical precision

Display labels round millimetres to one decimal place, centimetres and inches to two decimal places, and PPI to the nearest integer. PDF placement uses floating-point point values with three decimal places. Raster dimensions are rounded to the nearest whole pixel because partial pixels do not exist.

Validation procedure

The release package includes automated checks for internal links, metadata, structured data, sitemap coverage, JavaScript console errors, calculator outputs, local file processing, PDF page dimensions and random conversion cases. These tests reduce software mistakes but cannot validate a user's printer hardware.

Known limitations

  • Animated GIFs are not exported as animation.
  • Transparent pixels become white in the PDF image stream.
  • Very large 600 PPI exports may exceed browser memory and are blocked.
  • A4 is the only page size in this release.
  • Colour profiles and print colour accuracy are outside scope.
  • Printer margins and mechanics remain external variables.

Corrections and versioning

Material corrections are reflected in the page update date and release notes. Report a reproducible calculation or wording problem to its.me.jskim@gmail.com. Include browser, operating system, input values and observed output when relevant.

About this guide

This article is original editorial content from Actual Size Lab. It explains the same formulas and limitations used by the site's browser tools. Corrections can be sent through the contact page.