{"id":30516112,"url":"https://github.com/0xf0xx0/pixorder","last_synced_at":"2025-08-26T09:29:05.445Z","repository":{"id":208530006,"uuid":"721805728","full_name":"0xf0xx0/pixorder","owner":"0xf0xx0","description":"CLI pixelsorter","archived":false,"fork":false,"pushed_at":"2025-06-06T23:16:46.000Z","size":107734,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T08:43:29.610Z","etag":null,"topics":["generative-art","generativeart","glitch-art","glitchart","pixel-sorter","pixel-sorting","pixelsorting"],"latest_commit_sha":null,"homepage":"","language":"Go","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/0xf0xx0.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T20:05:07.000Z","updated_at":"2025-04-25T22:45:23.000Z","dependencies_parsed_at":"2025-01-16T02:11:57.522Z","dependency_job_id":"e12c9fe8-99c4-4ea3-9968-95606742b518","html_url":"https://github.com/0xf0xx0/pixorder","commit_stats":null,"previous_names":["experibass/pixelsort-go","0xf0xx0/pixelsort-go","0xf0xx0/pixorder"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xf0xx0/pixorder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2Fpixorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2Fpixorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2Fpixorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2Fpixorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xf0xx0","download_url":"https://codeload.github.com/0xf0xx0/pixorder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xf0xx0%2Fpixorder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272205148,"owners_count":24891692,"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-08-26T02:00:07.904Z","response_time":60,"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":["generative-art","generativeart","glitch-art","glitchart","pixel-sorter","pixel-sorting","pixelsorting"],"created_at":"2025-08-26T09:29:03.063Z","updated_at":"2025-08-26T09:29:05.438Z","avatar_url":"https://github.com/0xf0xx0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixorder\n![masked row sort](./examples/webb-row-masked.jpg)\n\npixelsorter cli written in golang\n\nrewritten from my nodejs implementation, which used [satyarth/pixelsort](https://github.com/satyarth/pixelsort/) as reference\n\nfurst time using go, might be cursed\n\n## features\n- row, spiral, and seam carving patterns\n- shuffle pixels, sort in waves, random lengths, or smear instead\n- sort by lightness, hue, saturation, and r/g/b\n- sort with a mask\n- sort multiple images in parallel\n- sort in reverse\n- rotation\n\n## wanted features\n- even more patterns\n  - https://github.com/satyarth/pixelsort/issues/30\n- completion? im lazy\n\n## install\n### from source\n```sh\ngit clone https://github.com/0xf0xx0/pixorder.git\ncd pixorder\ngo build\n# now `mv pixorder`, or\ngo install\n```\n\n## examples/usage\n**Original**\n![webb picture-of-the-month 2023/10](https://cdn.esawebb.org/archives/images/screen/potm2310a.jpg) - [src: ESA/Webb, NASA \u0026 CSA, A. Adamo (Stockholm University) and the FEAST JWST team](https://esawebb.org/images/potm2310a/)\n\n**Mask**\n![b\u0026w mask](./examples/webb-mask.jpg)\n\n**Row sort w/ default options**\n`pixorder --input ~/Downloads/potm2310a.jpg --output ./examples/webb-row.jpg`\n![row sort](./examples/webb-row.jpg)\n\n**Row sort w/ threshold**\n`pixorder --input ~/Downloads/potm2310a.jpg --lower_threshold 0.3 --upper_threshold 0.6 --output ./examples/webb-row-thresh.jpg`\n![row sort w/ threshold](./examples/webb-row-thresh.jpg)\n\n**Row sort w/ default options \u0026 mask**\n`pixorder --input ~/Downloads/potm2310a.jpg --mask ./examples/webb-mask.jpg --output ./examples/webb-row-masked.jpg`\n![masked row sort](./examples/webb-row-masked.jpg)\n\n**Spiral sort w/ default options**\n`pixorder --input ~/Downloads/potm2310a.jpg --pattern spiral --output ./examples/webb-spiral.jpg`\n![spiral sort](./examples/webb-spiral.jpg)\n\n**Spiral sort using most options \u0026 mask**\n`pixorder --input ~/Downloads/potm2310a.jpg --mask ./examples/webb-mask.jpg --pattern spiral --interval wave --randomness 0.4 --comparator saturation --section_length 400 --output ./examples/webb-spiral-masked.jpg`\n![masked spiral sort](./examples/webb-spiral-masked.jpg)\n\n**Seam sort w/ default options**\n`pixorder --input ~/Downloads/potm2310a.jpg --pattern seam --output ./examples/webb-seam.jpg`\n![seam sort](./examples/webb-seam.jpg)\n\n**Seam sort w/ default options \u0026 mask**\n`pixorder --input ~/Downloads/potm2310a.jpg --mask ./examples/webb-mask.jpg --pattern seam --output ./examples/webb-seam-masked.jpg`\n![masked seam sort](./examples/webb-seam-masked.jpg)\n\ndid you know webb and hubble pics are cc4?\n\n## \"benchmark\"\ndone with [hyperfine](https://github.com/sharkdp/hyperfine), so it's super legit now right? \\\nsrc img is the \"large jpg\" dl from [esawebb.org](https://esawebb.org/images/potm2310a/) \\\n`hyperfine -w 3 -c \"rm -v ./benchmark\" \"pixorder -i ~/Downloads/potm2310a.jpg -o ./benchmark\" \"pixorder -i ~/Downloads/potm2310a.jpg -m ./examples/webb-mask.jpg -o ./benchmark\" --export-markdown -`\n| Command | Mean [s] | Min [s] | Max [s] | Relative |\n|:---|---:|---:|---:|---:|\n| `pixorder -i ~/Downloads/potm2310a.jpg -o ./benchmark` | 2.716 ± 0.013 | 2.690 | 2.734 | 1.31 ± 0.02 |\n| `pixorder -i ~/Downloads/potm2310a.jpg -m ./examples/webb-mask.jpg -o ./benchmark` | 2.074 ± 0.032 | 2.032 | 2.126 | 1.00 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xf0xx0%2Fpixorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xf0xx0%2Fpixorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xf0xx0%2Fpixorder/lists"}