Skip to content

Artistic pixel sorting using brightness thresholds (TIFF support)

License

Notifications You must be signed in to change notification settings

pelayo-felgueroso/Pixelsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Sorting Art

This Python script applies artistic pixel sorting to .tiff images based on brightness thresholds. Inspired by glitch aesthetics similar to Kim Asendorf's work.

Features

  • Brightness-based pixel sorting (modes: bright or dark)
  • Works with .tiff images for processing
  • Uses Pillow, NumPy, and tifffile
  • Includes horizontal and vertical pixel sorting
  • Ready to run and easy to customize

Example Results

Mountains (before and after)

Input
Before

Output
After


Lady (before and after)

Input
Lady Original

Output
Lady Sorted


How to Use

  1. Place your .tiff images inside the Aphelion/ folder.
  2. Open pixel_sort.py and configure:
    • input_path
    • output_path
    • mode: "bright" or "dark"
    • threshold: brightness threshold (0–255)
  3. Run the script:
pip install -r requirements.txt
python pixel_sort.py

Releases

No releases published

Packages

No packages published

Languages