From abd1efa61ed57fa6f1531090f66fff12788182e9 Mon Sep 17 00:00:00 2001 From: Cyber Dick Lang <286878701@qq.com> Date: Thu, 31 Jul 2025 18:34:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0Utility-Text=20Additi?= =?UTF-8?q?on=E9=A2=84=E8=AE=BE=E5=88=B0Kontext=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/tools/kontext_presets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodes/tools/kontext_presets.py b/nodes/tools/kontext_presets.py index 9b2918c..3d02cd0 100644 --- a/nodes/tools/kontext_presets.py +++ b/nodes/tools/kontext_presets.py @@ -132,6 +132,10 @@ class LoadKontextPresets_UTK: "name": "Utility-Pattern Extraction (花纹提取)", "brief": "Extract the visible pattern or logo from the $user_prompt$ in the image and convert it into a seamless flat texture. Remove all lighting, shading, wrinkles, folds, and perspective distortions. Ensure the output is a clean, high-resolution top-down view of the pattern with no character, background, or surrounding elements included. Preserve the original colors, fine details, and relative scale of the pattern as seen on the specified object. The extraction should isolate the pattern completely, eliminating any 3D effects, shadows, or environmental influences while maintaining the authentic visual characteristics and color palette of the original design.", }, + { + "name": "Utility-Text Addition (添加文字)", + "brief": "Add visually embedded text to the image with the following specifications based on $user_prompt$: 1. **Text Content**: Specify the exact text to be added, including any special characters, numbers, or phrases. 2. **Text Placement**: Determine the precise location (e.g., upper left corner, center bottom, overlaid on a signboard, floating in the sky, on a wall, on clothing, on a product label). 3. **Text Style**: Apply the specified visual style (e.g., handwritten script, neon glow effect, comic book font, typewriter style, chalk on board, engraved metal, painted graffiti, digital LED display, vintage typography, calligraphy). 4. **Visual Integration**: Ensure the text blends naturally with the scene by matching lighting conditions, perspective, surface textures, and environmental factors. 5. **Contextual Adaptation**: Adjust text size, color, and opacity to fit the scene's mood and maintain readability while respecting the original composition. 6. **Surface Interaction**: If placed on surfaces, ensure the text follows the surface's contours, lighting, and material properties (e.g., text on glass should have transparency, text on metal should have reflections). The text should appear as if it was naturally part of the original scene, with appropriate shadows, highlights, and environmental effects.", + }, { "name": "Utility-Text Removal (移除文字)", "brief": "Remove all text from the image as a meticulous restoration project. Based on the user's specific request: $user_prompt$, describe the text removal process. Specify which text elements need to be removed, how to reconstruct underlying surfaces, and any restoration techniques needed to create a seamless, text-free image.",