Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lengto

Turn pixels into measurements.

Open an image. Set the scale. Measure.

Download lengto.exe · Quick guide · Python examples

Windows 10/11 x64 · About 3.5 MB · No installation

lengto measures real distances on scanned plans, technical photographs and microscope images. All you need is a known reference length and a single executable.

lengto measuring a calibrated engineering drawing

Application render using a synthetic drawing.

Small tool. Useful capabilities.

  • Open or paste. TIFF, PNG, JPEG and PDF, including multipage documents. Paste images with Ctrl+V.
  • Calibrate and measure. Pixel snapping, flexible units and editable measurement labels.
  • Save the result. Export annotated images or PDFs; include all pages in TIFF/PDF.
  • Repeat the work. Record editable Python macros and apply them to other images or whole folders.

Open a document, calibrate a reference, measure between pixels and automate with Python

Start in three steps

  1. Download and run lengto.exe. Open, drop or paste an image.
  2. Choose Measurements → Calibrate, enter a known length and click its endpoints.
  3. Choose Measure, click endpoint pairs, then File → Export to save. Esc ends the tool.

Quick guide →

From pixels to Python

A recorded point carries absolute coordinates, exact relative fractions and the source RGB color

Every recorded point keeps its pixel coordinates, relative position and source color. Edit the macro to find colored features, repeat measurements or process a folder. Relative coordinates adapt to resized images with matching framing; RGB searches let your script choose new endpoints.

Python 3.8+ is needed only to run macros. Measuring and recording need nothing extra.

Explore the Python examples →

Know the limits: one uniform scale per document; no perspective correction. Exports flatten annotations and use preview resolution. Keep the source and a macro to reproduce your work.

Build from source · Releases · Report a problem

MIT license · © 2026 Ivan Panzera. Bundled components retain their own licenses.

About

Portable image measurement in native C. Calibrate scans, measure real distances, and record Python macros for batch workflows.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages