Nodes Browser
ComfyDeploy: How Snap Processing for Comfyui works in ComfyUI?
What is Snap Processing for Comfyui?
preprocessing images, presented in a visual way. It also calculates the corresponding image area.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
Snap Processing for Comfyui
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
Update
我更新了SnapCanvas节点用于可视化创建画布,及拖动/缩放输入图像,以及视图整体缩放,并改变了控制逻辑,具体控制逻辑参照窗口中使用方法。
更新后控制逻辑(Updated control logic)
缩放视图: 将鼠标移动到视图区域,滚动鼠标滚轮即可缩放视图。 Zoom the view: Move the mouse to the view area and scroll the mouse wheel to zoom the view.
缩放图像: 按住 Control 键,将鼠标移动到图像上,滚动鼠标滚轮即可缩放图像。 Zoom the image: Press and hold the Control key, move the mouse to the image, and scroll the mouse wheel to zoom the image.
旋转图像: 在输入框中输入旋转角度(度数),点击 “旋转” 按钮。 Rotate the image: Enter the rotation angle (degrees) in the input box and click the "Rotate" button.
调整画布大小: 在对应的输入框中输入画布的宽度和高度,点击 “设置画布大小” 按钮。 Adjust the canvas size: Enter the width and height of the canvas in the corresponding input boxes and click the "Set Canvas Size" button.
保存图像: 点击 “保存并关闭” 按钮,保存当前的图像并关闭窗口。 Save the image: Click the "Save and Close" button to save the current image and close the window.
简述
创建这个仓库是没有办法的办法,因为我没有找到一个可以在comfyui中完成面积大小及面积占比化整的节点,所以不得不自己创建一个节点配合我的“Majic product”工作流完成自动化运行
Creating this repository was a last resort because I couldn't find a node in ComfyUI that calculates area size and ratio, so I had to create a custom node to integrate with my 'Majic product' workflow for automated execution.
使用方法
https://github.com/SS-snap/Snap-Processing.git
克隆仓库到你的自定义节点目录中 Clone the repository into your custom node directory
SnapArea nodes
上面的“面积”输出为面积总数,下面的“占比%”输出为所选颜色面积占比化整
The "Area" above is the total area, and the "Proportion%" below is the area percentage of the selected color.
SnapCanvas nodes
在comfyui运行至snapcanvas节点时,阻断工作流,pyqt5界面会自动弹出,你可以设置画布大小并点击set canvas size,也可以利用鼠标滚轮或拖拽图像右下角对输入图像进行缩放,还可以进行旋转以及拖动图像位置。最后点击save and close,阻断关闭,工作流继续运行
When the workflow reaches the SnapCanvas node in ComfyUI, it will pause, and the PyQt5 interface will automatically pop up. You can set the canvas size and click "Set Canvas Size," or use the mouse wheel or drag the bottom-right corner of the input image to scale it. Finally, click "Save and Close," and the workflow will resume.
找到我 Wechat:SmartCanvas303 douyin:SmartCanvas303