{"id":34017557,"url":"https://github.com/rkargon/pixelsorter","last_synced_at":"2025-12-13T14:41:01.168Z","repository":{"id":8292594,"uuid":"56463987","full_name":"rkargon/pixelsorter","owner":"rkargon","description":"Pixel sorting tool for Python","archived":false,"fork":false,"pushed_at":"2023-10-04T00:55:12.000Z","size":24040,"stargazers_count":110,"open_issues_count":2,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-27T17:46:57.763Z","etag":null,"topics":["glitch-art","image-manipulation","pixel-sorting","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rkargon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-17T23:38:17.000Z","updated_at":"2025-03-17T22:39:00.000Z","dependencies_parsed_at":"2023-01-13T14:43:38.342Z","dependency_job_id":null,"html_url":"https://github.com/rkargon/pixelsorter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rkargon/pixelsorter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkargon%2Fpixelsorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkargon%2Fpixelsorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkargon%2Fpixelsorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkargon%2Fpixelsorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkargon","download_url":"https://codeload.github.com/rkargon/pixelsorter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkargon%2Fpixelsorter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27707318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glitch-art","image-manipulation","pixel-sorting","python"],"created_at":"2025-12-13T14:41:00.542Z","updated_at":"2025-12-13T14:41:01.161Z","avatar_url":"https://github.com/rkargon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PixelSorting\n\nA python library for pixel-sorting images.\nThis includes a script for easy pixel sorting from the command line, as well as\nlibrary code that is abstracted and easily extensible for custom features.\n\n## Features\n - A variety of sorting paths\n - Many different sort functions\n - Edge detection for sorting boundaries\n - Sorting individual tiles within an image\n - Support for sorting GIFs and creating animated sorts.\n\n## Installation\nPixelSorting requires the Pillow module for image manipulation.\n\nOne can run ` pip install -r requirements.txt` to download any necessary modules.\n\n## Usage\n\nTo run the script, use the command `python pixelsort.py \u003cimage\u003e -o \u003cresult\u003e` to sort a given image\nand store it in `\u003cresult\u003e`. Use the `--log` flag to view progress for sorting particularly large images.\nVarious sorting options are described in detail in [the full documentation](docs/DOCUMENTATION.md).\nOne can also run the script with the `-h|--help` flag to see the full list of options.\n\nGiven the following original image:\n\n![Original Image][original]\n\nThe default sorting settings will produce:\n\n![Default sorting][default]\n\nOne can also sort certain intervals using the `-i` flag.\nThe flags `-i 50 -r` will sort random intervals of length up to 50 pixels:\n\n![Sorting random intervals][sort50random]\n\nThere are a variety of possible sorting paths, specified using the `-p` flag.\nFor example, `-i 100 -r -p diagonal` will produce:\n\n![Sorting diagonally][sort100-diagonal]\n\nPaths can also accept arguments.\nFor instance, the flag `-p \"angled-line angle=60\"` passes the argument `angle=60` to the `angled-line` path,\nand sorts pixels in lines tilted at 60 degrees:\n\n![Sorting with angled lines][sort-angled-line-60]\n\nSorting paths are explained in more detail in [the paths documentation](docs/PATHS.md).\n\n### Animation\n\nThe pixelsorting script supports animation using the `--animate` flag.\nThe syntax is `--animate \"\u003cparam\u003e initial_value end_value num_frames\"`,\nwhere the given parameter is interpolated between the start and end values for the given number of frames.\n\nFor instance, the flags `--animate \"max_interval 2 30 15` will produce the following animation:\n![Animated sort][sort-animated]\n\nOne can also animate path arguments using the syntax `path.arg`.\nFor instance, `-p angled-line --animate \"path.angle 0 90 20\"` will produce a 20-frame animation\nin which the angle of sorting goes from horizontal to vertical.\n\nOne can also run the script using animated GIFs as input.\n\n[//]: # \"Figures\"\n[original]: docs/figures/original.jpg\n[default]: docs/figures/sort-sum.jpg\n[sort50random]: docs/figures/sort-50-random.jpg\n[sort100-diagonal]: docs/figures/sort-100-diagonal.jpg\n[sort-angled-line-60]: docs/figures/sort-angled-line-60.jpg\n[sort-animated]: docs/figures/sort-animated.gif\n\n\n### License\n\nThis software is licensed under the GNU GPL license, which can be found in [LICENSE.txt](LICENSE.txt).\nIn short, one is free to use, modify, and redistribute this code, under the GPL license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkargon%2Fpixelsorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkargon%2Fpixelsorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkargon%2Fpixelsorter/lists"}