Image → natural language summary with heuristics, thumbnails, and LLM transport hints
Project description
img2nl
AI Cost Tracking
- 🤖 LLM usage: $0.1500 (1 commits)
- 👤 Human dev: ~$100 (1.0h @ $100/h, 30min dedup)
Generated on 2026-06-08 using openrouter/qwen/qwen3-coder-next
Heuristic image → natural language summary for transport to LLM and other services.
No vision LLM required — uses Pillow heuristics:
- monochrome vs multi-color palette
- dominant colors, brightness range, contrast
- large regions / objects
- noise vs flat surfaces
- regular patterns (bands/grid)
- thumbnail generation (JPEG)
- LLM transport hint (
sendvsskip)
Install
pip install -e ".[analyze]"
bash install-dev.sh # full *2img2nl stack
CLI
img2nl analyze photo.png --json
dsl2img2nl -c "ANALYZE photo.png" --json
uri2img2nl query "img2nl://analyze?path=photo.png&locale=de"
img2nl analyze photo.png --locale fr
python -c "from img2nl.i18n import supported_locales; print(supported_locales())"
Packages
| Package | Role |
|---|---|
img2nl |
Core heuristics + describe + thumbnail |
uri2img2nl |
img2nl:// URI layer |
dsl2img2nl |
DSL bus (ANALYZE, QUERY, LLM_HINT) |
cli2img2nl |
Shell adapter |
VQL integration
Use img2vql in oqlos/vql:
img2vql diagnose capture.png --vql-program app.vql.json
uri2vql query "vql://window/diagnose?file=app.vql.json&image=capture.png"
License
Licensed under Apache-2.0.
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 img2nl-0.1.1.tar.gz.
File metadata
- Download URL: img2nl-0.1.1.tar.gz
- Upload date:
- Size: 375.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e225543310d87bed183f8f5c07570ac0ab13be78f489fd4544b64a9deb3dd2eb
|
|
| MD5 |
0f8856a26613f056003eb39708269043
|
|
| BLAKE2b-256 |
7020d6c8913de3a62a30eb015d1dcd5e14beec8e3df322f53deb120b183de689
|
File details
Details for the file img2nl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: img2nl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad4e91ae68d490793c179e21fd692be050b9025cd086a91ec17f5c35fe0fb232
|
|
| MD5 |
c3ccf24f0522281edde35366a95e276f
|
|
| BLAKE2b-256 |
d32df8050288f3b9a3743b8934bfe9625c192b0b19afbaa9bc2c6e9df8f99ad0
|