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
vectormode is the default and produces smoother, smaller meshes.voxelmode is still available as a fallback.--resolution 0keeps the source image resolution.--simplifyand--min-areaare the main cleanup controls for traced artwork.
Release automation
This repo includes:
.github/workflows/ci.ymlfor tests and build validation on pushes and pull requests..github/workflows/release.ymlfor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b660249ac953278e7cf0939cfb35f21eb477594ad1466f4ba6d5ee234dd95f0d
|
|
| MD5 |
863dcd1fb2083cb671a63013d38edebe
|
|
| BLAKE2b-256 |
3accad61537a0b1623a6d7466eceeaef48dcd520eb43d07bf5576e421a2e27a0
|
Provenance
The following attestation bundles were made for stampify-0.1.0.tar.gz:
Publisher:
release.yml on nwcell/stampify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stampify-0.1.0.tar.gz -
Subject digest:
b660249ac953278e7cf0939cfb35f21eb477594ad1466f4ba6d5ee234dd95f0d - Sigstore transparency entry: 1175239832
- Sigstore integration time:
-
Permalink:
nwcell/stampify@3f638c8846dd896dd869ed146c81a27fde66283b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nwcell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f638c8846dd896dd869ed146c81a27fde66283b -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
967536024577d1def76cdd46eff386d2e75d7ec8b1b85766ca00c364b7e7d7f1
|
|
| MD5 |
26df810a22928d4cde006c03d26b5b54
|
|
| BLAKE2b-256 |
61161fa8e03bb421c2518412f8582981dade8c2492d9689cbdd2705de5e689e9
|
Provenance
The following attestation bundles were made for stampify-0.1.0-py3-none-any.whl:
Publisher:
release.yml on nwcell/stampify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stampify-0.1.0-py3-none-any.whl -
Subject digest:
967536024577d1def76cdd46eff386d2e75d7ec8b1b85766ca00c364b7e7d7f1 - Sigstore transparency entry: 1175240332
- Sigstore integration time:
-
Permalink:
nwcell/stampify@3f638c8846dd896dd869ed146c81a27fde66283b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nwcell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f638c8846dd896dd869ed146c81a27fde66283b -
Trigger Event:
release
-
Statement type: