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文件内容详细分析,包括文件
结构、图像元数据和统计信息,使其更适合程序化处理和调试。
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显示器的实际使用场景,并提供了何时以及如何使用小数缩放
因子以获得最佳视觉效果的清晰指导。