Img2Desmos
This is a simple python script that converts an image to the bezier curves which can be plotted on desmos.
Requirements
- Python 3.11
- Poetry
- [Optional] Chafa (for previewing images in terminal)
Installation
pip install img2desmos
Usage
> img2desmos --help
Usage: img2desmos [OPTIONS] IMG
╭─ Arguments ───────────────────────────────────────────────────────────────────────────────╮
│ * img TEXT Path to the image to convert into graph [default: None] [required] │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --output -o TEXT Output formulas file path [default: None] │
│ --preview -p Preview the img in a window (chafa is required) │
│ --upper INTEGER Upper threshold for the edge detection [default: 200] │
│ --lower INTEGER Lower threshold for the edge detection [default: 100] │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
Formulas will be pasted into clipboard
Demo
https://github.com/Perchinka/img2desmos/assets/34923601/b34c509b-6fae-4e57-8f8f-7d76a0139e42
Metadata
Release files for img2desmos 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| img2desmos-1.1.0.tar.gz | 3.1 kB | Without provenance | Details for img2desmos-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| img2desmos-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for img2desmos-1.1.0-py3-none-any.whl |
Total release size: 7.0 kB
Release files / img2desmos-1.1.0.tar.gz
| Download URL | img2desmos-1.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a349c0f7c8fbcff8eb0c29f476d13360d5ad1fa5c4fda455fd4111bc6da6e95
|
|
BLAKE2b-256 checksum How to use checksums |
e2cab35d028361381a22ce0acc53b6306f490c411ca55de6fca560234e260557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.19 Linux/6.5.0-1017-azure
|
Release files / img2desmos-1.1.0-py3-none-any.whl
| Download URL | img2desmos-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcd6d538f74cf884236c563e4fb618ff17fffe8cf0499df0c2b9f4d942eb0257
|
|
BLAKE2b-256 checksum How to use checksums |
ea4bb5fe569d9c98ee71e59160f21aec3f5ccd9c5caa0f50e30fc40636601ee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.19 Linux/6.5.0-1017-azure
|
Security for img2desmos 1.1.0
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.