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.

License

MIT. See LICENSE.

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.1.tar.gz (561.8 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stampify-0.1.1.tar.gz
  • Upload date:
  • Size: 561.8 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.1.tar.gz
Algorithm Hash digest
SHA256 b1c7980bdae5839260519cdce612afd5098319e418f0a067abd0603fb48f4d8a
MD5 e9ebc0bb35aec6739074b52f2632c352
BLAKE2b-256 7193899cdf4cee6d2483638703ae9ee84be4802395d31f062de4fe9a3a99b5a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampify-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: stampify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc18aa93327b476b961725031e83a3225f171e451c4b6b3b2630bfdb091e4dfd
MD5 8243e57173c0306767470fc8bc1a9826
BLAKE2b-256 3df7e1f4809d57e803a7bbe0a455ebac15778792a1998f77817b4e32fa0b6f53

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampify-0.1.1-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