📏K-Centroid Resize Menu

Resize images using the k-centroid downscaling algorithm created by Astropulse.

K-Centroid Resize

"K-Centroid resize" has several input settings, but requires at least one layer and frame for each image. It is found in "Help" -> "Retro Diffusion Scripts" -> "K-Centroid resize," or in "Sprite" -> "K-Centroid resize."

"K-Centroid resize" requires an active sprite canvas and the RGB color mode.

This tool works by splitting an image into tiles and calculating the most prominent color in each tile. It outperforms all other traditional methods for downscaling images for pixel art.

Size

"Width" and "Height" settings determine the output size of the downscaled image. Percentage inputs are also available.

By default the ratio is locked, but can be unlocked to scale the image with different aspect ratios.

K-Means

"Centroids" determines the number of colors each tile is divided into. By default, this number is 2 (which is recommended for most operations). More colors generally lead to more noise and artifacts.

Processing Cels

This applies "K-Centroid resize" to multiple images. If both options are checked, all images in the sprite are processed.

All layers

The "All layers" checkbox applies "K-Centroid resize" to all layers in the selected frame.

All frames

The "All frames" checkbox applies "K-Centroid resize" to all frames on the selected layer.

Process in Background

"Process in background" keeps the command line interface minimized.

Last updated