img2scad - Convert images to OpenSCAD structures <https://gitlab.com/engmark/img2scad>
Default syntax:
img2scad [-b|–base=N] [-l|–log] < input_file
Description:
For each pixel in the input, it will create a cube in the output. The height of the cube corresponds to the whiteness of the corresponding pixel.
If -b or –base is specified, all values will be shifted by that value. This can be positive or negative. This can be used to output zero values.
If -l or –log is specified, the logarithm of the grey values will be used for the output.
Examples:
- img2scad < example.png > example.scad
Convert example.png to example.scad.
- img2scad -b 1 < example.png > example.scad
Convert example.png to example.scad, with a “bedrock” of height 1.
- img2scad -b 2 -l < example.png > example.scad
Convert example.png to example.scad, taking the logarithm for the height and preserving the black pixels.
<http://www.thingiverse.com/thing:4448>
Bugs:
Please submit bug reports at https://gitlab.com/engmark/img2scad/-/issues.
Metadata
Release files for img2scad 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| img2scad-0.5-py3-none-any.whl | Python 3 | none | any | Details for img2scad-0.5-py3-none-any.whl |
Release files / img2scad-0.5-py3-none-any.whl
| Download URL | img2scad-0.5-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b277e2922840ac9bce8e63e0a0f453b16249ab7e42ee20c4b234fa51bab34ee
|
|
BLAKE2b-256 checksum How to use checksums |
cb17111d0aff054b87416dbd86df0a90c7d0b66dfb8779b3c03475b122f2ada0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for img2scad 0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.