Update node files
This commit is contained in:
@@ -1,21 +1,5 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Skycoder182
|
||||
Copyright (c) 2025 Your Name
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy...
|
||||
|
||||
@@ -1,41 +1,7 @@
|
||||
# ComfyUI Filename Tools
|
||||
|
||||
Custom nodes for ComfyUI to extract and optionally trim filenames from file paths.
|
||||
Extract filenames from full paths and optionally trim them using a marker.
|
||||
Removes file extensions automatically.
|
||||
|
||||
## Features
|
||||
|
||||
- Extract filename from a full file path
|
||||
- Optionally remove everything from a specified marker
|
||||
- Automatically removes the file extension
|
||||
|
||||
## Node: Extract & Trim Filename (No Extension)
|
||||
|
||||
### Inputs
|
||||
|
||||
- `file_path` (STRING): Full path to the file (e.g., `C:/images/image_upscaled_001.png`)
|
||||
- `trim_marker` (STRING): Optional marker to trim from (e.g., `_upscaled`)
|
||||
|
||||
### Output
|
||||
|
||||
- Filename without extension, trimmed at the marker (if found)
|
||||
|
||||
### Example
|
||||
|
||||
**Input path:**
|
||||
`C:/Test/image_upscaled_001.jpg`
|
||||
**Marker:** `_upscaled`
|
||||
**Output:** `image`
|
||||
|
||||
## Installation
|
||||
|
||||
1. Clone or download this repository into your `ComfyUI/custom_nodes/` folder:
|
||||
|
||||
```
|
||||
git clone https://github.com/yourusername/comfyui-filename-tools.git
|
||||
```
|
||||
|
||||
2. Restart ComfyUI
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License.
|
||||
Example:
|
||||
Input: `C:/Images/photo_upscaled_v1.png`, Marker: `_upscaled` → Output: `photo`
|
||||
|
||||
+15
-14
@@ -1,14 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui-filename-tools"
|
||||
version = "1.0.0"
|
||||
description = "A utility node for extracting and trimming filenames from file paths"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = []
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/skycoder182/comfyui-filename-tools"
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "skycoder"
|
||||
DisplayName = "Filename Tools"
|
||||
Icon = "https://raw.githubusercontent.com/skycoder182/comfyui-filename-tools/main/icon.png"
|
||||
|
||||
[project]
|
||||
name = "comfyui-filename-tools"
|
||||
version = "1.0.1"
|
||||
description = "A utility node for extracting and trimming filenames from file paths"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = []
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/skycoder182/comfyui-filename-tools"
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "skycoder"
|
||||
DisplayName = "Filename Tools"
|
||||
Icon = "https://raw.githubusercontent.com/skycoder182/comfyui-filename-tools/main/icon.png"
|
||||
|
||||
Reference in New Issue
Block a user