Commit Graph
6 Commits
Author SHA1 Message Date
JiDe Zhang 06965db5c4 Revert "refactor: Replace DCI Structure Preview with DCI Analysis node"
This reverts commit 2e57f10732.
2025-06-10 17:37:22 +08:00
JiDe Zhang 2e57f10732 refactor: Replace DCI Structure Preview with DCI Analysis node
This commit transforms the DCI Structure Preview node into a DCI Analysis
node that outputs text content instead of providing visual preview
functionality.

Key changes:
1. Renamed DCIPreviewNode to DCIAnalysisNode in preview_node.py
2. Changed node category from DCI/Preview to DCI/Analysis
3. Modified return type from UI output to STRING output
4. Removed image preview functionality and background color options
5. Updated all node registrations and display names
6. Updated documentation and example workflows
7. Updated test files to reflect the new functionality
8. Removed obsolete preview-specific test files

The new DCI Analysis node provides detailed text-based analysis of DCI
file contents, including file structure, image metadata, and statistics,
making it more suitable for programmatic processing and debugging.

重构:将DCI结构预览节点替换为DCI分析节点

此提交将DCI结构预览节点转换为DCI分析节点,输出文本内容而不是
提供可视化预览功能。

主要变更:
1. 在preview_node.py中将DCIPreviewNode重命名为DCIAnalysisNode
2. 将节点类别从DCI/Preview更改为DCI/Analysis
3. 将返回类型从UI输出修改为STRING输出
4. 移除图像预览功能和背景颜色选项
5. 更新所有节点注册和显示名称
6. 更新文档和示例工作流程
7. 更新测试文件以反映新功能
8. 删除过时的预览特定测试文件

新的DCI分析节点提供基于文本的DCI文件内容详细分析,包括文件
结构、图像元数据和统计信息,使其更适合程序化处理和调试。
2025-06-10 17:16:01 +08:00
JiDe Zhang de514b7c0c docs: Add decimal scale examples and documentation updates
1. Create decimal_scale_example.py demonstrating decimal scale usage
2. Update examples/README.md to include new example documentation
3. Showcase practical decimal scales like 1.25x, 1.5x for high-DPI displays
4. Provide comprehensive usage examples for different scaling scenarios
5. Include file size comparisons and scaling benefits explanation

This documentation enhancement helps users understand and utilize the new
decimal scaling functionality effectively. The example demonstrates real-world
use cases for high-DPI displays and provides clear guidance on when and how
to use decimal scale factors for optimal visual results.

docs: 添加小数缩放示例和文档更新

1. 创建decimal_scale_example.py展示小数缩放的使用方法
2. 更新examples/README.md包含新示例的文档说明
3. 展示1.25x、1.5x等适用于高DPI显示器的实用缩放比例
4. 提供不同缩放场景的全面使用示例
5. 包含文件大小比较和缩放优势说明

此文档增强帮助用户有效理解和使用新的小数缩放功能。示例演示了
高DPI显示器的实际使用场景,并提供了何时以及如何使用小数缩放
因子以获得最佳视觉效果的清晰指导。
2025-06-09 16:49:42 +08:00
JiDe Zhang c872d51aba refactor: remove unused dci_file_path parameter from DCIPreviewNode 2025-06-09 16:26:14 +08:00
JiDe Zhang 1fda0c7cdf refactor: 简化 DCI Preview 节点接口
- 移除 dci_file_path 参数,专注于二进制数据输入
- 移除 show_metadata 参数,总是显示元数据信息
- 简化节点接口,提高易用性
- 更新相关测试文件以适应新接口
- 更新文档和示例工作流
- 添加新的示例工作流展示重构后的节点架构

这些更改使 DCI Preview 节点更加专注和易用,符合单一职责原则。
2025-06-09 16:14:59 +08:00
JiDe Zhang fcccf0da29 refactor: Reorganize project structure following ComfyUI-Easy-Use best practices 2025-06-04 16:44:33 +08:00