Pixel sorting is a digital image processing technique that involves isolating a horizontal or vertical line of pixels in an image and sorting their positions based on any number of criteria, such as luminosity, hue, or saturation. The result is a glitchy, abstracted image that can be used for artistic purposes. Pixelort is also a software that can do pixel sorting with various options and tweaks. This tool is based on this library: https://github.com/satyarth/pixelsort
- Download the python version:
- Extract the downloaded file
- Install the modules of requirements.txt:
pip install -r requirements.txt
- Run
pixelort.py
- Drag and Drop file support
- Masking feature
- Save/Import Mask
- 6 Pixel Sorting Modes
- Angle and threshold parameters
- Sorting functions
- Image reference mode
- Check version updates
- Export to png/jpg
- One click live render
- Dark/Light themes
- More...
You can draw the mask of the area where you want the pixel sorting effect.
Modes | Description |
---|---|
Random |
Randomly generate intervals. Distribution of widths is linear by default. Interval widths can be scaled using character length . |
Edges |
Performs an edge detection, which is used to define intervals. |
Threshold |
Intervals defined by lightness thresholds; only pixels with a lightness between the upper and lower thresholds are sorted. |
Waves |
Intervals are waves of nearly uniform widths. Control width of waves with character length . |
Reference |
Intervals taken from another specified input image. Should be black and white, and the same size as the input image. |
Border |
Sort whole rows, only stopping at image borders. |
Sorting function | Description |
---|---|
Lightness |
Sort by the lightness of a pixel according to a HSL representation. |
Hue |
Sort by the hue of a pixel according to a HSL representation. |
Saturation |
Sort by the saturation of a pixel according to a HSL representation. |
Intensity |
Sort by the intensity of a pixel, i.e. the sum of all the RGB values. |
Minimum |
Sort on the minimum RGB value of a pixel (either the R, G or B). |
This project can be helpful for customtkinter developers making similar type of applications, it will also help those who want to experiment pixel sorting and glitch art. Support for more projects!
Author: Akascape