Skip to content
Back to skills

Measure From Photos

ASecurity

Get the dimensions of an object without calipers: scale product photos by one known length, read other people's open models, take numbers from spec drawings, and mark every number measured, scaled or estimated. Then print a fit coupon to settle the estimates. Use when someone says they have no calipers, asks to 'measure from the photo', 'use the product page', 'make a holder for X', or gives only rough sizes like 'about 5 inches'.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythonrustgorails

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add alexnodeland/fabrication --skill measure-from-photos --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Measure From Photos?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Measure From Photos
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnodeland-measure-from-photos/badge)](https://www.skillsdirectory.com/skills/alexnodeland-measure-from-photos)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: measure-from-photos
description: "Get the dimensions of an object without calipers: scale product photos by one known length, read other people's open models, take numbers from spec drawings, and mark every number measured, scaled or estimated. Then print a fit coupon to settle the estimates. Use when someone says they have no calipers, asks to 'measure from the photo', 'use the product page', 'make a holder for X', or gives only rough sizes like 'about 5 inches'."
---

# Measure from photos, models and specs

When nobody can put calipers on the thing, get each number from the best source there is, say where it came from,
size the part so the doubt can't hurt it, and let a printed coupon decide.

## Sources, best first

1. **A spec or datasheet drawing.** Exact, if it is the right revision. The PCIe CEM spec gave the pcie-box its card
   sizes: board 1.57 thick, full-height 111.15, half-length 167.65, bracket 18.42 wide.
2. **A listed dimension plus orthographic product photos.** The manufacturer states one length; the photos give the
   rest by proportion. gridfinity-x2d scaled the X2D hotend from Bambu Lab's store photos by the listed 49.2 mm.
3. **Someone's open model** (STEP, 3MF, STL) of the same object or of a holder that fits it. Read it with
   `remix-a-model`. It is that person's measurement, not the object's: check it against a photo.
4. **Photos of the object beside something of known size:** a Gridfinity bin (41.5 mm a cell), a printer's toolhead,
   a coin, a PCIe bracket. Expect perspective errors.
5. **The person's own rough numbers** ("about 5 in"). Take the worst reading, not the middle one.

## Scale a photo

1. Find shots that are near-orthographic: a plain light background, a long lens, the object square to the camera.
   Store product shots usually are. Phone photos of a tray are not.
2. Pick the known length. It must lie in the same plane as the features you measure, and you must know exactly what
   it spans (does the 49.2 mm include the inlet stub?).
3. Measure pixels exactly, never by eye. `templates/silhouette.py` reads a silhouette on a light background:

   ```sh
   python3 -I silhouette.py photo.png --known-mm 49.2 --threshold 148
   ```

   It prints mm/px, the box, and the outline as segments along the axis (length, width at each end, centre). Set the
   threshold halfway between the background's grey and the object's, so a soft edge splits evenly. Crop away
   anything else dark in the frame (`--crop`), or it counts as the object.
4. Every number is good to about one pixel. At 20 px/mm that is 0.05 mm; at 5 px/mm it is 0.2 mm. Say so.
5. Measure the same feature in a second photo (front and side, or another product shot). Where they disagree,
   record both.

Pages that block plain fetches (MakerWorld, Printables, the Bambu store) open in a real browser (Playwright). To
measure an image inside the page, draw it to a canvas with `img.crossOrigin = "anonymous"` and read the pixels; that
worked on `store.bblcdn.com`. Curl with a spoofed user agent gets denied.

## Record where each number came from

Put the source in the parameter's comment, and the same table in the README under a heading like "Fit: where the
numbers come from (read before trusting it)":

```python
HS_W = 17.6   # across the label face: store photo FAH059, scaled by the listed length 49.2
SOCK_T = 16.5 # <- ESTIMATE: no side view exists anywhere. Print the coupon.
CARD_TOP = 127.0  # "about 5 in", read as measured from the bottom of the gold fingers: the worst reading
```

Words to use: **measured** (calipers), **spec** (a datasheet), **scaled** (from a photo, with its scale), **from a
model** (whose), **estimate** (a guess, and why that guess).

## Size the part around the doubt

- **When looseness costs nothing, cover every reading.** Bambu's orthographic shots gave the heatsink 17.6 mm wide; a
  tray photo scaled to 19–19.8 mm (perspective). The pocket is 20.0, so either fits (1.2 mm a side, on purpose).
- **When the fit matters, the coupon decides.** Leave the number as a named parameter and print the coupon first.
- **Know where the slack runs out.** The hotend pocket has only 2 mm of slack lengthwise. If the listed 49.2 mm
  excludes the stub, the hotend is about 7 % longer and won't fit: the coupon would show it.
- **Rough sizes from a person:** ask which end they measured from, or assume the worst. "About 5 in" tall became 127 mm
  above the bottom of the gold fingers, the reading that needs the most room.

## The coupon settles it

Cut the critical feature out of the real part, with the real clearances and walls, and print it with the same
settings as the part (see `fits-and-tolerances`):

- gridfinity-x2d: one hotend pocket cut down to axis height, and one sock pocket 8 mm deep, side by side on one plate.
- pcie-box: three 60 mm rails with slot widths 1.621, 1.721 and 1.821, marked by one, two and three pips.

Tell the person exactly what to try with the coupon and which parameter each result changes. After the coupon, a
number earns a new label: "coupon-checked".

## Done when

- Every dimension is a named parameter with its source in a comment.
- The README lists the estimates and which coupon tests each one.
- The coupon is the first thing to print, and the person knows what to look for.

Worked examples, with the numbers and what each photo gave: `references/worked-examples.md`.

Files in this skill

  • SKILL.md5.3 KB
  • references/worked-examples.md3.3 KB
  • templates/silhouette.py4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.