Nodes Browser

ComfyDeploy: How ComfyUI-PIL works in ComfyUI?

What is ComfyUI-PIL?

ComfyUI is proud to present a new plugin designed to enhance user experience through seamless integration with Pillow, the powerful fork of Python Imaging Library (PIL). This plugin offers a suite of basic image manipulation tools that are easy to use and integrate directly into the ComfyUI framework.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-PIL and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine
<div align="center"> <img src="./image/icon.png" width="256px"/> </div> <div align="center"> 富强、民主、文明、和谐、合规 </div> <div align="center"> 自由、平等、公正、法治、合法 </div> <div align="center"> 爱国、敬业、诚信、友善、合理 </div>

ComfyUI PIL Nodes

PIL Nodes, 提供了3个插件Nodes:

  1. PIL TITLE (Mexx) -- 增加留白
  2. PIL Merge Image (Mexx) -- 合并图像
  3. PIL Effects (Mexx) -- 图片特效
  4. PIL Remove Black Dots (Mexx) -- 给线稿脱色,去除一些黑色的噪点

Workflow Example

PIL图像处理DEMO.json

PIL TITLE (Mexx) & PIL Merge Image (Mexx)

00007.jpg

PIL Effects (Mexx)

原始

Origin.jpg

线稿-LINE0

Mexx_0190.jpg

线稿-LINE1

Mexx_0191.jpg

线稿-LINE2

Mexx_0192.jpg

线稿-LINE3

Mexx_0193.jpg

线稿-LINE3.1

Mexx_0194.jpg

线稿-LINE3.2

Mexx_0195.jpg

线稿-LINE4

Mexx_0196.jpg

线稿-LINE5

Mexx_0197.jpg

边缘检测-FIND_EDGES

Mexx_0198.jpg

轮廓-CONTOUR

Mexx_0199.jpg

灰度-L

Mexx_0200.jpg

锐化-SHARPEN

Mexx_0201.jpg

锐化-UNSHARP_MASK

Mexx_0202.jpg

边缘增强-EDGE_ENHANCE

Mexx_0203.jpg

边缘增强-EDGE_ENHANCE_MORE

Mexx_0204.jpg

浮雕-EMBOSS

Mexx_0205.jpg

平滑-SMOOTH

Mexx_0206.jpg

平滑-SMOOTH_MORE

Mexx_0207.jpg

细节-DETAIL

Mexx_0208.jpg

模糊-BLUR

Mexx_0209.jpg

模糊-BOX_BLUR

Mexx_0210.jpg

模糊-GAUSSIAN_BLUR

Mexx_0211.jpg

反相-INVERT

Mexx_0212.jpg

去燥-中值滤波器

Mexx_0213.jpg