Extensions/ComfyUI ASDF Pixel Sort Nodes
ComfyUI Extension

ComfyUI ASDF Pixel Sort Nodes

A ComfyUI integration of Kim Asendorf's iconic ASDFPixelSort algorithm, bringing classic pixel sorting effects directly into your ComfyUI workflows

By A043-studios·Created about a year ago·Updated about a year ago· 3
A043-studios/ComfyUI-ASDF-Pixel-Sort-Nodes
Nodes2
On cloudLocal install
Categoryimage/effects
Stars3
Updatedabout a year ago
Readme

ComfyUI ASDF Pixel Sort Nodes

ComfyUI Processing License Version

A ComfyUI integration of Kim Asendorf's iconic ASDFPixelSort algorithm, bringing classic pixel sorting effects directly into your ComfyUI workflows.

✨ Features

  • 🎨 Authentic Algorithm: Uses original Kim Asendorf ASDFPixelSort Processing script
  • 🔄 Four Sorting Modes: White, Black, Bright, and Dark threshold-based sorting
  • 🔗 Seamless Integration: Native ComfyUI tensor handling and workflow compatibility
  • ⚙️ Full Control: Complete parameter customization for all sorting thresholds
  • 🖥️ Headless Ready: Virtual display support for server environments
  • 📦 Easy Install: Automated setup script for all dependencies

🚀 Quick Start

Installation

  1. Clone this repository into your ComfyUI custom_nodes directory:
cd /path/to/ComfyUI/custom_nodes/
git clone https://github.com/your-username/ComfyUI-ASDF-PixelSort.git
  1. Install dependencies (automated):
cd ComfyUI-ASDF-PixelSort
chmod +x scripts/install.sh
sudo ./scripts/install.sh
  1. Restart ComfyUI to load the new nodes

Basic Usage

  1. Add LoadImage node → Pixel Sort (ASDF)SaveImage
  2. Configure sorting mode and thresholds
  3. Queue prompt to process

🎛️ Available Nodes

Pixel Sort (ASDF)

Location: Add NodeimageeffectsPixel Sort (ASDF)

Parameters:

  • Mode: white | black | bright | dark
  • White Threshold: -16777216 to 0 (default: -12345678)
  • Black Threshold: -16777216 to 0 (default: -3456789)
  • Bright Threshold: 0 to 255 (default: 127)
  • Dark Threshold: 0 to 255 (default: 223)

Pixel Sort Advanced (ASDF)

Location: Add NodeimageeffectsPixel Sort Advanced (ASDF)

Additional features:

  • Optional parameter inputs
  • Custom Processing sketch path support
  • Extended configuration options

🎨 Sorting Modes Explained

| Mode | Description | Effect | |------|-------------|--------| | White | Sorts pixels based on white threshold | Flowing, organic distortions | | Black | Sorts pixels based on black threshold | Emphasizes shadows and dark regions | | Bright | Sorts pixels based on brightness values | Smooth luminance gradients | | Dark | Sorts pixels based on darkness values | High-contrast dramatic effects |

📖 Documentation

🛠️ System Requirements

Minimum:

  • Linux (Ubuntu 20.04+, CentOS 8+, Arch Linux)
  • 4GB RAM, 2GB free storage
  • Python 3.8+, Java 17+
  • ComfyUI v0.3.40+

Recommended:

  • 8GB+ RAM, SSD storage
  • Multi-core processor
  • GPU for ComfyUI acceleration

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Attribution

🙏 Acknowledgments

  • Kim Asendorf for the original ASDFPixelSort algorithm
  • ComfyUI Community for the excellent framework
  • Processing Foundation for the creative coding platform
  • Contributors who help improve this project

<div align="center">

Made with ❤️ for the ComfyUI community

⭐ Star this repo🐛 Report Bug💡 Request Feature

</div>