| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ImageGoNord is a tool that can convert your rgb images to nordtheme palette.
You can find more information here: ImageGoNord
This repository is a client, written in python, that can convert any sort of image into a nordtheme palette image.
Include any essential instructions for:
Getting it:
git clone https://github.com/schroedinger-Hat/ImageGoNord-cli
Install dependencies
pip install -r requirements.txtInstall with Poetry
poetry installLocal development commands with Poetry
poetry run ign
poetry run ign --help
poetry run image-go-nord-client --img='<path_to_your_image>'
poetry run python -m unittest tests.unit.mocked.test_client_batch_behaviorRunning poetry run ign without parameters opens the interactive terminal UI.
Running it
export PYTHONPATH=$PYTHONPATH:$PWD/src:$PWD/tests
python src/image_go_nord_client --img='<path_to_your_image>'Or if you prefer
export PYTHONPATH=$PYTHONPATH:$PWD/src:$PWD/tests
cd src
python image_go_nord_client --img='<path_to_your_image>'The CLI now exposes a modern command surface using ign command patterns:
python -m image_go_nord_client convert ./image.png
python -m image_go_nord_client palette list
python -m image_go_nord_client batch ./images --recursive
python -m image_go_nord_client doctorCompatibility behavior:
Shell completion (when Typer is installed):
python -m image_go_nord_client --install-completion
python -m image_go_nord_client --show-completionText-mode UI enhancement:
The algorithm can take some time (we are working on improving it), you can find the result with the name nord.png.
You can define some more configuration and use different palettes, find more using:
python src/image_go_nord_client --img='<path_to_your_image>'Example:
python src/image_go_nord_client --img='<path_to_your_image>' --format=jsonSuccessful JSON output example:
{
"contract_version": "3.0",
"ok": true,
"request_id": "8d7ed9d6-e10d-4f8e-99ea-d31c8f07f34b",
"result": {
"colors": ["Aurora", "Frost", "PolarNight", "SnowStorm"],
"input_path": "input.png",
"output_path": "nord.png",
"palette": "nord"
}
}Validation error JSON output example:
{
"contract_version": "3.0",
"ok": false,
"request_id": "5939121b-fb7d-4be8-8ef2-8d0eb3ebd5ec",
"error": {
"code": "E_VALIDATION",
"message": "Color ['NOT_FOUND'] not found, possible colors are ['Aurora', 'Frost', 'PolarNight', 'SnowStorm']"
}
}List installed palettes:
python src/image_go_nord_client palette listList installed palettes in JSON:
python src/image_go_nord_client palette --format=json listShow details for a specific palette:
python src/image_go_nord_client palette info nordShow palette details in JSON:
python src/image_go_nord_client palette info nord --format=jsonStart interactive mode:
python src/image_go_nord_client tuiTUI status as JSON envelope:
python src/image_go_nord_client tui --format=jsonRun a TUI action without opening the full-screen interface:
python src/image_go_nord_client tui --action=browse-palettes --format=jsonRun conversion directly from TUI action options:
python src/image_go_nord_client tui --action=convert-image --img=wall.png --out=wall-nord.png --palette=nord --colors=Aurora,Frost --blurWith Poetry:
poetry run ign tuiAvailable actions:
Convert action options:
Batch-conversion action options:
Batch-conversion action returns a dry-run plan only. It does not convert files.
The TUI command is powered by Textual and supports:
If Textual is not installed, the command returns exit code 4 and a dependency error.
When installing through Poetry, Textual is installed automatically because it is part of the default project dependencies.
Install Textual:
pip install textualRun environment diagnostics:
python src/image_go_nord_client doctorRun diagnostics in JSON mode:
python src/image_go_nord_client doctor --format=jsonDoctor currently validates:
Doctor text output now includes a compact summary and a structured checks report.
Generate a batch conversion plan from a directory:
python src/image_go_nord_client batch ./imagesGenerate plan recursively and print JSON output:
python src/image_go_nord_client batch ./images --recursive --format=jsonSet output directory and palette in the generated plan:
python src/image_go_nord_client batch ./images --out-dir ./converted --palette monokaiCurrent batch behavior is a dry-run planner only. It does not convert files yet.
When scanning recursively, output paths preserve the input directory structure. For example images/a/b/wall.png becomes converted/a/b/wall-nord.png when using --out-dir ./converted.
Execute conversion for the detected files:
python src/image_go_nord_client batch ./images --applyExecute conversion with explicit conversion options:
python src/image_go_nord_client batch ./images --apply --palette monokai --colors=Accent,Base --blur --no-avgWhen --apply is used, the command returns:
This repository is now Poetry-managed for packaging and release.
Build distributions:
poetry buildInstall locally from wheel:
pip install dist/image_go_nord_client-1.0.0-py3-none-any.whlPublish to PyPI:
poetry config pypi-token.pypi <your-token>
poetry publish --buildIf poetry install fails while building Pillow, update the lock and install again:
poetry lock
poetry installIf your machine has multiple Python versions, prefer Python 3.12 or 3.13 for local dev:
poetry env use 3.13
poetry installAfter installation, command entrypoints are:
NOTE: we are not (yet) affiliated with the Nordtheme or Arcticicestudio.
| Back | FazBrowse Home | New Git URL |