Skip to main content

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

Project description

stampify

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

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

Install

Install from a checkout:

uv tool install .

Run without installing:

uvx --from . ink-stamp sample/xmas-cowboy.jpeg

Standalone CLI

Run it directly from the repo:

uv run ink-stamp sample/xmas-cowboy.jpeg

Install it as a standalone tool:

uv tool install .
ink-stamp sample/xmas-cowboy.jpeg

Sample

The repo includes sample/xmas-cowboy.jpeg as a sample input. Generate the sample stamp with:

uv run ink-stamp sample/xmas-cowboy.jpeg -o xmas-cowboy-stamp.stl

Or compare the two geometry modes against the same sample:

uv run ink-stamp sample/xmas-cowboy.jpeg --mode vector -o xmas-cowboy-vector-stamp.stl
uv run ink-stamp sample/xmas-cowboy.jpeg --mode voxel --resolution 300 -o xmas-cowboy-voxel-stamp.stl

Add To Another Project

Add the package from GitHub:

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

Once you publish to PyPI, the same package can be added with:

uv add stampify

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("sample/xmas-cowboy.jpeg", options=options)
print(output_path, mesh.extents)

Notes

  • 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.

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 setup steps you still need to complete in GitHub and PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stampify-0.1.0.tar.gz (561.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stampify-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file stampify-0.1.0.tar.gz.

File metadata

  • Download URL: stampify-0.1.0.tar.gz
  • Upload date:
  • Size: 561.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stampify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b660249ac953278e7cf0939cfb35f21eb477594ad1466f4ba6d5ee234dd95f0d
MD5 863dcd1fb2083cb671a63013d38edebe
BLAKE2b-256 3accad61537a0b1623a6d7466eceeaef48dcd520eb43d07bf5576e421a2e27a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampify-0.1.0.tar.gz:

Publisher: release.yml on nwcell/stampify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stampify-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stampify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stampify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 967536024577d1def76cdd46eff386d2e75d7ec8b1b85766ca00c364b7e7d7f1
MD5 26df810a22928d4cde006c03d26b5b54
BLAKE2b-256 61161fa8e03bb421c2518412f8582981dade8c2492d9689cbdd2705de5e689e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampify-0.1.0-py3-none-any.whl:

Publisher: release.yml on nwcell/stampify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page