Name | ComfyUI_Ib_CustomNodes JSON |
Version |
0.2.2
JSON |
| download |
home_page | None |
Summary | Load Image From Path, PIL.Image |
upload_time | 2024-02-29 15:22:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
comfyui
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# ComfyUI_Ib_CustomNodes
## Load Image From Path
```python
def LoadImageFromPath(
image: str = r'ComfyUI_00001_-assets\ComfyUI_00001_.png [output]'
) -> tuple[Image, Mask]
```
ComfyUI's built-in `Load Image` node can only load uploaded images, which produces duplicated files in the input directory and cannot reload the image when the source file is changed. `Load Image From Path` instead loads the image from the source path and does not have such problems.
One use of this node is to work with Photoshop's [Quick Export](https://helpx.adobe.com/photoshop/using/export-artboards-layers.html#:~:text=in%20Photoshop.-,Quick%20Export%20As,-Use%20the%20Quick) to quickly perform img2img/inpaint on the edited image. Update: For working with Photoshop, [comfyui-photoshop](https://github.com/NimaNzrii/comfyui-photoshop) is more convenient and supports waiting for changes. See [tutorial at r/comfyui](https://www.reddit.com/r/comfyui/comments/18jygtn/new_ai_news_photoshop_to_comfyui_v1_is_finally/).
The image path can be in the following format:
- Absolute path:
`D:\ComfyUI\output\ComfyUI_00001_-assets\ComfyUI_00001_.png`
- Relative to the input directory:
`ComfyUI_00001_-assets\ComfyUI_00001_.png [input]`
- Relative to the output directory:
`ComfyUI_00001_-assets\ComfyUI_00001_.png [output]`
- Relative to the temp directory:
`ComfyUI_00001_-assets\ComfyUI_00001_.png [temp]`
## PIL.Image
```python
def PILToImage(
images: PilImage
) -> Image
```
```python
def PILToMask(
images: PilImage
) -> Image
```
```python
def ImageToPIL(
images: Image
) -> PilImage
```
Raw data
{
"_id": null,
"home_page": null,
"name": "ComfyUI_Ib_CustomNodes",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "comfyui",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/ee/7a/5902ac05fad6d7d67915b48f9736d9d592074c91e45ad6a883632508c32a/comfyui_ib_customnodes-0.2.2.tar.gz",
"platform": null,
"description": "# ComfyUI_Ib_CustomNodes\n## Load Image From Path\n```python\ndef LoadImageFromPath(\n image: str = r'ComfyUI_00001_-assets\\ComfyUI_00001_.png [output]'\n) -> tuple[Image, Mask]\n```\n\nComfyUI's built-in `Load Image` node can only load uploaded images, which produces duplicated files in the input directory and cannot reload the image when the source file is changed. `Load Image From Path` instead loads the image from the source path and does not have such problems.\n\nOne use of this node is to work with Photoshop's [Quick Export](https://helpx.adobe.com/photoshop/using/export-artboards-layers.html#:~:text=in%20Photoshop.-,Quick%20Export%20As,-Use%20the%20Quick) to quickly perform img2img/inpaint on the edited image. Update: For working with Photoshop, [comfyui-photoshop](https://github.com/NimaNzrii/comfyui-photoshop) is more convenient and supports waiting for changes. See [tutorial at r/comfyui](https://www.reddit.com/r/comfyui/comments/18jygtn/new_ai_news_photoshop_to_comfyui_v1_is_finally/).\n\nThe image path can be in the following format:\n- Absolute path:\n\n `D:\\ComfyUI\\output\\ComfyUI_00001_-assets\\ComfyUI_00001_.png`\n\n- Relative to the input directory:\n\n `ComfyUI_00001_-assets\\ComfyUI_00001_.png [input]`\n\n- Relative to the output directory:\n\n `ComfyUI_00001_-assets\\ComfyUI_00001_.png [output]`\n\n- Relative to the temp directory:\n\n `ComfyUI_00001_-assets\\ComfyUI_00001_.png [temp]`\n\n## PIL.Image\n```python\ndef PILToImage(\n images: PilImage\n) -> Image\n```\n```python\ndef PILToMask(\n images: PilImage\n) -> Image\n```\n```python\ndef ImageToPIL(\n images: Image\n) -> PilImage\n```",
"bugtrack_url": null,
"license": null,
"summary": "Load Image From Path, PIL.Image",
"version": "0.2.2",
"project_urls": {
"Homepage": "https://github.com/Chaoses-Ib/ComfyUI_Ib_CustomNodes",
"comfyui-legacy": "https://github.com/Chaoses-Ib/comfyui-legacy"
},
"split_keywords": [
"comfyui"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "0a0aa3086721f4f036e829bd49339fc9c30f790e054fc5fb2bbd8b33520f3792",
"md5": "a56b06b0bd9248ba138d3656287ee979",
"sha256": "986713c6b5d0ced95eb7a671aae939bb0ab1f5899da016a49a7c33e13131a082"
},
"downloads": -1,
"filename": "comfyui_ib_customnodes-0.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a56b06b0bd9248ba138d3656287ee979",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 7966,
"upload_time": "2024-02-29T15:22:25",
"upload_time_iso_8601": "2024-02-29T15:22:25.665513Z",
"url": "https://files.pythonhosted.org/packages/0a/0a/a3086721f4f036e829bd49339fc9c30f790e054fc5fb2bbd8b33520f3792/comfyui_ib_customnodes-0.2.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ee7a5902ac05fad6d7d67915b48f9736d9d592074c91e45ad6a883632508c32a",
"md5": "71b7128eb14044ff4ce9210a65e44b7a",
"sha256": "ed1e36a7c99488135d647384d19785ce8681baae323c1f0bb0a25436b3f6cd32"
},
"downloads": -1,
"filename": "comfyui_ib_customnodes-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "71b7128eb14044ff4ce9210a65e44b7a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5180,
"upload_time": "2024-02-29T15:22:26",
"upload_time_iso_8601": "2024-02-29T15:22:26.795583Z",
"url": "https://files.pythonhosted.org/packages/ee/7a/5902ac05fad6d7d67915b48f9736d9d592074c91e45ad6a883632508c32a/comfyui_ib_customnodes-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-29 15:22:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Chaoses-Ib",
"github_project": "ComfyUI_Ib_CustomNodes",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "comfyui_ib_customnodes"
}