Commit Graph
15 Commits
Author SHA1 Message Date
jammyfu d94f171fd6 Refactor and enhance image processing nodes in ComfyUI. Added new nodes for dynamic image input, image resolution adjustment
类结构修改,功能完善
2024-12-30 20:33:00 +08:00
fujammy 14563130cd Enhance MaskPreview class to support list output and improve mask handling. Added MaskPreview to initialization and updated return structure to include converted masks alongside images.
修正Maskpreview输出bug
2024-12-30 02:04:04 +08:00
fujammy 40321e9742 Refactor mask generation in image resizing functions to include scale factor parameter. Updated calculate_mask function to improve mask creation logic and ensure accurate handling of image boundaries across all resizing methods.
修改不同对齐方式mask生成的逻辑
2024-12-28 11:16:28 +08:00
fujammy 07f6fed1f5 Update .gitignore to include specific cache files and IDE-related entries. Adjusted the ignore rules to better manage Python cache and IDE artifacts, enhancing project cleanliness. Updated binary file in __pycache__ for image resolution adjuster. 2024-12-26 23:45:51 +08:00
fujammy d8bb35f328 Enhance image resizing functionality by adding mask generation for all resizing methods. Updated the resize_image function to return a mask alongside the resized image, ensuring better handling of image boundaries. Improved the calculate_mask function to support various alignment modes and ensure accurate mask creation. This update enhances the overall image processing capabilities. 2024-12-26 21:29:45 +08:00
jammyfu d5a47e1be5 fix 2024-12-26 13:04:55 +08:00
fujammy 5612977396 This commit introduces a new function, create_outline, which adds a 1-pixel outline to images using the complementary color of a specified background. The adjust_resolution method now includes an add_outline parameter to enable or disable this feature, and the configuration supports the add_outline option, enhancing flexibility in adjusting image resolution.
这个提交引入了一项新功能 create_outline,可以为图像添加1像素的轮廓,使用指定背景色的互补色。更新了 adjust_resolution 方法,添加了 add_outline 参数,允许用户启用或禁用该功能。此外,配置现在支持 add_outline 选项,提高了图像分辨率调整过程的灵活性。
2024-12-26 01:30:44 +08:00
fujammy bc86bf84d6 Enhanced image resizing with customizable background colors. Updated resize_image to use a specified background color and improved the background_color parameter for better consistency.
fix bug
优化图像缩放功能,支持自定义背景颜色。更新了 resize_image 函数以使用指定的背景颜色,并改进了配置中的 background_color 参数,确保处理的一致性。这一更新提升了用户体验,提供了更多灵活的图像展示选项。
2024-12-26 01:10:23 +08:00
jammyfu 0f0e332d6c Refactor __init__.py to include ClickPopup; update TextCombiner for enhanced text processing with regex This commit adds the ClickPopup class to NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS in __init__.py. Additionally, the TextCombiner class has been refactored to improve its functionality, allowing for customizable separators and enhanced error handling for regex inputs. The changes aim to enhance the text processing capabilities of the application. 2024-12-25 21:22:13 +08:00
jammyfu 55f99320a1 Add TextCombiner and MultilineTextInput classes; update __init__.py for new nodes
This commit introduces two new classes: TextCombiner and MultilineTextInput, enhancing the text processing capabilities of the application. The __init__.py file has been updated to include these new nodes in the NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS. Additionally, the requirements.txt file has been cleaned up by removing the outdated Gradio dependency
2024-12-25 18:53:35 +08:00
fujammy 3111ed4a1b Update compiled Python bytecode for image resolution adjuster 2024-12-25 03:16:37 +08:00
fujammy 60205d34b7 Refactor image initialization and error handling; enhance image resolution adjuster with background color support and improved functionality. Update README files to reflect new features and usage instructions. 2024-12-25 03:03:27 +08:00
fujammy 58d3c0c0dc Enhance image resolution adjuster to support SDXL optimal aspect ratios with improved error handling. Update README files to reflect new features and use cases for the image resolution adjuster utility. 2024-12-25 01:44:44 +08:00
fujammy 1527d8dc22 Refactor image resolution calculation to support dynamic aspect ratios and enforce resolution constraints. Update resolution options to include only SDXL optimal resolutions. Improve error handling for invalid aspect ratio formats. 2024-12-25 01:24:13 +08:00
jammyfu c58a94f6b2 add image resolution 2024-12-24 19:21:06 +08:00