{"id":25820335,"url":"https://github.com/surajkareppagol/sort-image","last_synced_at":"2025-07-10T15:41:35.909Z","repository":{"id":264463621,"uuid":"892910323","full_name":"surajkareppagol/sort-image","owner":"surajkareppagol","description":"📶  Visualize sorting algorithms via images. ","archived":false,"fork":false,"pushed_at":"2025-01-21T16:36:05.000Z","size":1661,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T23:24:22.485Z","etag":null,"topics":["sorting","sorting-algorithms","sorting-visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surajkareppagol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-23T03:07:53.000Z","updated_at":"2025-01-21T16:36:09.000Z","dependencies_parsed_at":"2025-01-03T19:22:26.204Z","dependency_job_id":"8b34d97b-ee44-4634-9f9f-9a30f89d6d29","html_url":"https://github.com/surajkareppagol/sort-image","commit_stats":null,"previous_names":["surajkareppagol/sort-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/surajkareppagol/sort-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Fsort-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Fsort-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Fsort-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Fsort-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surajkareppagol","download_url":"https://codeload.github.com/surajkareppagol/sort-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Fsort-image/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264599690,"owners_count":23635311,"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","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":["sorting","sorting-algorithms","sorting-visualization"],"created_at":"2025-02-28T09:53:41.475Z","updated_at":"2025-07-10T15:41:35.853Z","avatar_url":"https://github.com/surajkareppagol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📶 Sort Image\n\n![Sort Image (Bubble Sort) - Preview](out/sort-image.gif)\n\nInspiration for this project is the following post from [Reddit](https://www.reddit.com/r/ProgrammerHumor/comments/cyrlvp/learn_sorting_algorithm_with_kronk/).\n\n## 👷 Architecture\n\nThe flow of data is as follows: `PIL` is used for image manipulation, and either\n`FFMPEG` or `OPENCV` can be used to combine the generated images into a video.\n\n![\"Architecture\"](./docs/images/architecture.jpg)\n\n## ⚙️ Usage\n\nInstall either `FFMPEG` or `OPENCV`.\n\n```sh\nsudo apt install ffmpeg\n```\n\n```sh\ngit clone https://github.com/surajkareppagol/sort-image\ncd sort-image\n```\n\n```sh\npython3 -m venv .venv\nsource .venv/bin/activate\n```\n\n```sh\npip install -r requirements.txt\n```\n\n```sh\npython3 src/main.py [image]\n```\n\n## ➡️ Available Options\n\n| Option | Description      | Arguments            |\n| ------ | ---------------- | -------------------- |\n| -      | Image            | None                 |\n| s      | Image split size | Number (default: 50) |\n| a      | Algorithm        | Index number (0 - 6) |\n| b      | Builder          | \"ff\" or \"cv\"         |\n\n## 📶 Sorting Algorithms\n\nThe following algorithms are available:\n\n1. `Bubble Sort`\n2. `Selection Sort`\n3. `Insertion Sort`\n4. `Merge Sort`\n5. `Quick Sort`\n6. `Heap Sort`\n\nEach algorithm creates a visually unique sorting video, making it easier to\nunderstand the sorting process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajkareppagol%2Fsort-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurajkareppagol%2Fsort-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajkareppagol%2Fsort-image/lists"}