Skip to main content

stampify

Turn black-and-white artwork into stamp-ready STL models.

Repository: https://github.com/nwcell/stampify

Install

Run the CLI without installing:

uvx stampify path/to/image.png

Install it as a standalone tool:

uv tool install stampify
stampify path/to/image.png

Add it to another Python project:

uv add stampify

CLI

Generate the bundled sample stamp:

uv run stampify sample/xmas-cowboy.jpeg

Write to a specific STL path:

uvx stampify path/to/image.png -o stamp.stl

Compare the two geometry modes:

uvx stampify path/to/image.png --mode vector -o stamp-vector.stl
uvx stampify path/to/image.png --mode voxel --resolution 300 -o stamp-voxel.stl

Show all options:

uvx stampify --help

Python API

Use it from Python:

from ink_print import StampOptions, write_stamp

options = StampOptions(mode="vector", size=80, border=2, simplify=0.05)
output_path, mesh = write_stamp("path/to/image.png", options=options)
print(output_path, mesh.extents)

Development

Run from a local checkout:

uv run stampify sample/xmas-cowboy.jpeg

Install the local checkout as a tool:

uv tool install .

Add the local checkout to another project:

uv add git+https://github.com/nwcell/stampify

Notes

  • The repo includes sample/xmas-cowboy.jpeg as a sample input.
  • vector mode is the default and produces smoother, smaller meshes.
  • voxel mode is still available as a fallback.
  • --resolution 0 keeps the source image resolution.
  • --simplify and --min-area are the main cleanup controls for traced artwork.
  • The default stamp mirrors the artwork so the printed impression reads correctly.
  • The border is raised by default. Disable it with --no-raised-border.

Release automation

This repo includes:

  • .github/workflows/ci.yml for tests and build validation on pushes and pull requests.
  • .github/workflows/release.yml for publishing to PyPI from a GitHub Release via Trusted Publishing.

See RELEASING.md for the release process.

License

MIT. See LICENSE.

Release files for stampify 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stampify 0.1.4
File Size Uploaded
stampify-0.1.4.tar.gz 562.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stampify 0.1.4
File Interpreter ABI Platform
stampify-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 569.7 kB

Release files / stampify-0.1.4.tar.gz

Download URL stampify-0.1.4.tar.gz
Size 562.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc6f7a11125601f32dd859908d3436e2da130aeaa64807ba8053586fe1e71f0a
BLAKE2b-256 checksum
How to use checksums
12463a0093ec693c4ae46c79d5b22f97145ef9585d88082bc083f170dd0404a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.

Transparency log

Release files / stampify-0.1.4-py3-none-any.whl

Download URL stampify-0.1.4-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
543d7fe403cdfd904e63a388ab0713521bcd74c90861015f64dbfeb6fc8f2029
BLAKE2b-256 checksum
How to use checksums
a2a4da24e6bbbd85fef9508699160e3e8a0e9bc490837162d9f5add3634718f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page