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
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.jpegas a sample input. 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.- The default stamp mirrors the artwork so the printed impression reads correctly.
- The border is raised by default. Disable it with
--no-raised-border. ink-stampremains available as a compatibility alias for the CLI.
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 release process.
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
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.2.tar.gz.
File metadata
- Download URL: stampify-0.1.2.tar.gz
- Upload date:
- Size: 562.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74991480bae853d4036b796c6ff567b464ecf622340ddf6e7d256e32441156af
|
|
| MD5 |
c32ea80c2ef28d83aa2499dfee63ec9d
|
|
| BLAKE2b-256 |
1b0bf29b85e3b7846a87c341e68e849b71f7af15ea7d3fdb8446f964e05c7d97
|
Provenance
The following attestation bundles were made for stampify-0.1.2.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.2.tar.gz -
Subject digest:
74991480bae853d4036b796c6ff567b464ecf622340ddf6e7d256e32441156af - Sigstore transparency entry: 1175363062
- Sigstore integration time:
-
Permalink:
nwcell/stampify@1647bef3d3578ac64db0adc06d8edc5dd9a75fa8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nwcell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1647bef3d3578ac64db0adc06d8edc5dd9a75fa8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file stampify-0.1.2-py3-none-any.whl.
File metadata
- Download URL: stampify-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.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 |
ce1cd99e62617063051e6fda701f0a0ef308f66e467eb72368581d23c67d0ccc
|
|
| MD5 |
56d9d6ce18b0c047f78622d95308ad07
|
|
| BLAKE2b-256 |
560f0b4fd3c8f499ed62db6002b98971ea6da58ec4a02c19a357d054291e4054
|
Provenance
The following attestation bundles were made for stampify-0.1.2-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.2-py3-none-any.whl -
Subject digest:
ce1cd99e62617063051e6fda701f0a0ef308f66e467eb72368581d23c67d0ccc - Sigstore transparency entry: 1175363068
- Sigstore integration time:
-
Permalink:
nwcell/stampify@1647bef3d3578ac64db0adc06d8edc5dd9a75fa8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nwcell
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1647bef3d3578ac64db0adc06d8edc5dd9a75fa8 -
Trigger Event:
release
-
Statement type: