Skip to content

Pixel art postprocessing extension for stable diffusion AUTOMATIC1111 webui

Notifications You must be signed in to change notification settings

mrreplicart/sd-webui-pixelart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sd-webui-pixelart

Cover Extension for Automatic1111 webui that pixelize images.

Installation

  1. Go to "Extensions" tab
  2. Switch to "Install from url"
  3. Paste https://github.com/mrreplicart/sd-webui-pixelart to the "URL for extension's git repository" field and click "Install" button
  4. After installation is complete, go to "Installed" tab and click "Apply and restart UI"

Usage

This extension can be found both in txt2img/img2img and extras. If you would like to process image right after generation you can use "Pixel art" script in txt2img/img2img. Or you can click "Send to extras" button and play with settings and process your images in extras tab.

Check "Enable" in script section and also check "Enable" for exact tab (color, grayscale, black and white or custom palette)
Downscale - image downscale factor, for example 512x512 image with downscale set to 2 become 256x256.
Rescale to original size - rescales image back to original size after downscale and color correction.

Color

Color tab interface

Palette Size - number of colors

Palette size examples

Color limit example 1 Color limit example 2 Color limit example 3

Colors quantization method - different algorithms to get colors from image

Quantization examples

Quantization example 1 Quantization example 2 Quantization example 3

Colors dither method - different methods to represent colors with limited color palette

Dither examples

Dither example 1 Dither example 2 Dither example 3

Enable k-means for color quantization - in most cases picks better colors

K-means examples

K-means example 1 K-means example 2 K-means example 3

Grayscale

Grayscale tab interface Same as color tab, but instead of colors we work with shades of gray

Grayscale examples

Grayscale example 1 Grayscale example 2 Grayscale example 3

Black and white

Black and white tab interface Simple black and white mode

Threshold - value that determens when we paint pixel black or white Inverse - inverse colors

Black and white

Black and white example 1 Black and white example 2 Black and white example 3

Custom color palette

Custom color palette tab interface This mode allows to paint image with colors from another image. If palette included in image, like palettes from lospec, script will automatically apply it, overwise you can select palette size manually with Palette Size (only for complex images) slider.

custom_palette_demo.mp4
Custom palette examples

Custom color palette example 1 Custom color palette example 2 Custom color palette example 3

About

Pixel art postprocessing extension for stable diffusion AUTOMATIC1111 webui

Resources

Stars

Watchers

Forks

Languages