33 Commits
Author SHA1 Message Date
jammyfu 5cd5276ecd remove test file 2025-01-27 14:06:33 +08:00
jammyfu 0ab0e0666c Refactor ImageLatentCreatorPlus with simplified latent creation method 2025-01-27 13:55:40 +08:00
jammyfu df89683e98 Enhance image resolution handling with expanded aspect ratio support and improved scaling logic 2025-01-26 22:57:18 +08:00
jammyfu d544846593 Improve ImageSizeCreatorPlus and JavaScript widget handling with dynamic resolution updates 2025-01-26 22:30:51 +08:00
jammyfu 9c21d0207c Enhance ImageLatentCreator with dynamic resolution options and mode-based selection 2025-01-26 22:12:01 +08:00
jammyfu 44bee9415f Add Output To Text Converter utility node for flexible data conversion 2025-01-26 21:41:08 +08:00
jammyfu 1970e118ff Add Midjourney resolution options and Plus variants for image size and latent creators 2025-01-25 22:46:26 +08:00
jammyfu bbdca191ef bug fix 2025-01-22 07:31:27 +08:00
jammyfu 3865813a7c Refactor node mappings to include PaintingCoder namespace and enhance workflow fixer UI
- Updated NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS across multiple modules to prepend 'PaintingCoder::' to node names for better organization.
- Enhanced the workflow fixer HTML with a new layout, language toggle feature, and improved styling for better user experience.
- Added functionality for selecting fix types and path conversion options in the workflow fixer tool.
- Improved error handling and success messages in the workflow fixer script.
2025-01-21 17:48:55 +08:00
fujammy 4bdb0245de Add LatentSwitch and update NODE_CLASS_MAPPINGS for PaintingCoder namespace
- Introduced LatentSwitch node with versioning and namespace support.
- Updated NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS to include PaintingCoder namespace for existing nodes: TextSwitch, ImageSwitch, MaskSwitch, and WebImageLoader.
- Enhanced registration of nodes to improve organization and clarity in the codebase.
2025-01-10 03:27:04 +08:00
jammyfu 892d2d1a11 Add LatentSwitch node for conditional latent selection
- Introduced LatentSwitch node to allow switching between two latent inputs based on a boolean flag.
- Enhanced NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS to include LatentSwitch.
- Implemented error handling to return a default empty latent when no inputs are provided, improving robustness.
2025-01-09 21:24:34 +08:00
jammyfu 71fa5bbe83 Add MaskSwitch node and update documentation
- Introduced MaskSwitch node for conditional switching between two masks.
- Enhanced NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS to include MaskSwitch.
- Updated README files to document the new MaskSwitch and Web Image Loader features, including usage instructions and examples.
- Improved error handling in MaskSwitch to return a default empty mask when no inputs are provided.
2025-01-09 20:26:16 +08:00
jammyfu 41bfc629e8 Refactor WebImageLoader to enhance image processing capabilities: integrated PreviewImage class, added support for preview image generation, improved error handling, and updated input parameters to include preview_enabled. This update streamlines image loading from multiple sources and ensures robust error management while providing temporary file naming and subfolder organization for previews. 2025-01-09 19:43:54 +08:00
jammyfu 3bfc443f4b Add ImageToBase64 node 2025-01-09 17:22:23 +08:00
fujammy 5f189c7023 Refactor WebImageLoader to support processing of multiple image sources: introduced process_single_source method for improved handling of individual URLs and Base64 strings, enhanced error handling, and updated load_image method to manage multiple inputs efficiently. This update increases flexibility and robustness in image loading functionality. 2025-01-08 17:22:14 +08:00
fujammy 2106b2a715 Enhance WebImageLoader functionality: updated display name to include URL or Base64 support, added create_error_image method for improved error handling, and modified error responses to return a generated error image instead of a placeholder. Updated .gitignore to exclude cache files. 2025-01-08 17:01:39 +08:00
fujammy 8c051580f5 Refactor WebImageLoader to support multiple image sources: updated input parameter to accept base64 strings in addition to URLs, added validation methods for URL and base64 formats, and improved error handling with default image responses. This enhances flexibility and robustness in image loading functionality. 2025-01-08 16:40:02 +08:00
fujammy eedb7aa3e6 add web image loder 2025-01-08 16:33:43 +08:00
fujammy b013702314 Refactor ImageSwitch and TextSwitch classes to improve handling of None inputs. Introduced default empty image and string return values when both inputs are None, enhancing robustness and user experience. 2025-01-08 15:19:12 +08:00
fujammy f27afe4311 Add TextSwitch and ImageSwitch nodes 2025-01-08 14:54:24 +08:00
jammyfu dc81145988 Refactor image processing nodes: remove ImageLatentCreator class and its mappings from __init__.py, and update related JavaScript code to integrate new size node functionality. Adjust web directory path for improved structure. 2025-01-07 16:21:18 +08:00
jammyfu 598586d11f Enhance node mappings by adding ImageLatentCreator class and its display name to __init__.py, improving functionality and user interface clarity. 2025-01-07 15:47:49 +08:00
fujammy b94ea57099 Refactor install script to manage package installations and update requirements. Translated error messages to Chinese and added gradio as a required package in requirements.txt. Updated image_resolution_adjuster.py by removing unused imports for cleaner code. 2025-01-06 01:42:46 +08:00
fujammy 59b3895777 Refactor calculate_mask function in ImageResolutionAdjuster to enhance extend_mode handling. Added support for feathering in 'top', 'bottom', 'left', 'right', and 'center' modes, improving mask creation logic. Updated conditions for feathering effect application, ensuring better visual output and flexibility in image processing. 2025-01-05 02:01:35 +08:00
fujammy 71cd8941fe Enhance ImageResolutionAdjuster to support feathering in mask calculations. Updated mask creation logic in both 'contain' and 'pad' modes to utilize the new feathering parameter, improving the quality of image processing. This change enhances flexibility and visual output for users adjusting image resolutions. 2025-01-05 01:20:58 +08:00
fujammy ad1c204c7e Update NODE_DISPLAY_NAME_MAPPINGS for MaskPreview and enhance calculate_mask function in ImageResolutionAdjuster. Changed display name from "Mask Preview 🖼️" to "Mask Preview 🎭". Refactored mask creation logic to improve feathering effect and added 'feathering' parameter for better mask handling. Updated adjust_resolution method to use feathering parameter, enhancing flexibility in image processing. 2025-01-05 01:06:45 +08:00
fujammy c83ea89a59 Refactor dynamic input handling in image and mask combiners. Updated combine_images and combine_masks methods to streamline input processing by sorting and filtering non-None values. Improved error handling and ensured consistent return of empty images/masks when no valid inputs are provided. Enhanced text_combiner to manage text inputs more efficiently, ensuring proper handling of separators and empty inputs. These changes improve functionality and user experience across the dynamic input features. 2025-01-04 22:58:26 +08:00
fujammy 615d7f1e44 Enhance internationalization support in I18n class and update text_combiner for improved user experience. Added new language handling methods and updated translation loading. Refactored placeholder and error messages in TextCombiner to utilize dynamic translations based on app language settings. Introduced new nodes: DynamicMaskCombiner and SimpleTextInput, with corresponding mappings in NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS. 2025-01-04 20:10:44 +08:00
fujammy 7555bd8085 fix bug,add different language 2025-01-04 17:15:11 +08:00
fujammy 44502674ac fix bugs 2025-01-04 02:28:24 +08:00
jammyfu 9eaf7b12e9 Enhance ImageResolutionAdjuster by adding 'invert_mask' parameter for improved mask handling. Updated adjust_resolution method to support mask inversion, enhancing flexibility in image processing. This change streamlines the workflow for users requiring mask adjustments.
添加mask反向参数
2025-01-03 21:16:34 +08:00
fujammy f38d7e3a79 Refactor image processing and UI components for improved functionality. Enhanced MaskPreview class to streamline mask handling and output structure. Updated ClickPopup and DynamicImageCombiner nodes to improve event handling and connection management. Added custom styles for TextCombiner node to enhance visual presentation. These changes improve user experience and maintainability across the application. 2025-01-03 02:55:55 +08:00
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