From 8ad5b342fab24c3182b875e1ffe8390daa274add Mon Sep 17 00:00:00 2001 From: wyrde Date: Mon, 24 Apr 2023 17:54:56 -0400 Subject: [PATCH 1/2] pillow note --- misc/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/README.md b/misc/README.md index 83efdda..3573a26 100644 --- a/misc/README.md +++ b/misc/README.md @@ -13,6 +13,8 @@ A CLI script for adding a workflow to a PNG file. Requres Pillow module (PIL). I ``` python workping.py --image "/path/to/image.png" --workflow "/path/to/workflow.json" ``` +* note + * both comfy and a111 use pillow, but it may not be installed globally. Use the path to comfy or a111's python or a venv if pillow isn't accessable by system python. Or install from below. ### related * source: https://colab.research.google.com/drive/1hQMjNUdhMQ3rw1Wcm3_umvmOMeS_K4s8?usp=sharing#scrollTo=llbal5zlANoH From 2e7bfc67e4870b8b28bcefe25b34ee49f36d3493 Mon Sep 17 00:00:00 2001 From: wyrde Date: Mon, 24 Apr 2023 17:56:30 -0400 Subject: [PATCH 2/2] python codeblock --- misc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/README.md b/misc/README.md index 3573a26..f83c58f 100644 --- a/misc/README.md +++ b/misc/README.md @@ -11,7 +11,7 @@ a configuration file that adds some SD-related tags allowing exiftool to edit th ## workping.py A CLI script for adding a workflow to a PNG file. Requres Pillow module (PIL). It updates the image file, make a backup if you want extra safety. ``` -python workping.py --image "/path/to/image.png" --workflow "/path/to/workflow.json" + /path/to/python workping.py --image "/path/to/image.png" --workflow "/path/to/workflow.json" ``` * note * both comfy and a111 use pillow, but it may not be installed globally. Use the path to comfy or a111's python or a venv if pillow isn't accessable by system python. Or install from below.