{"id":16602443,"url":"https://github.com/lnxpy/pyshred-pro","last_synced_at":"2025-08-25T00:14:04.069Z","repository":{"id":34497771,"uuid":"150573089","full_name":"lnxpy/pyshred-pro","owner":"lnxpy","description":"🖼️ Let's Make a Binary Face","archived":false,"fork":false,"pushed_at":"2022-06-22T00:10:48.000Z","size":8547,"stargazers_count":16,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T08:11:37.505Z","etag":null,"topics":["binary","codec","image-processing","open-cv","open-mag","openmag","pro","pyshred","pyshtred-pro"],"latest_commit_sha":null,"homepage":"","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/lnxpy.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}},"created_at":"2018-09-27T10:59:02.000Z","updated_at":"2024-04-16T10:37:56.000Z","dependencies_parsed_at":"2022-09-11T09:40:18.592Z","dependency_job_id":null,"html_url":"https://github.com/lnxpy/pyshred-pro","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lnxpy/pyshred-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnxpy%2Fpyshred-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnxpy%2Fpyshred-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnxpy%2Fpyshred-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnxpy%2Fpyshred-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnxpy","download_url":"https://codeload.github.com/lnxpy/pyshred-pro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnxpy%2Fpyshred-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271983584,"owners_count":24853810,"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-24T02:00:11.135Z","response_time":111,"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":["binary","codec","image-processing","open-cv","open-mag","openmag","pro","pyshred","pyshtred-pro"],"created_at":"2024-10-12T00:22:13.963Z","updated_at":"2025-08-25T00:14:04.035Z","avatar_url":"https://github.com/lnxpy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyshred Pro v2.0 ✨️\n\n_Pyshred, now for images!_\n\npyshred is a program which allows you to chop your image with some formulas.\u003cbr\u003e\nin the 2.0 version, it's possible to change picture appearance to seems like charactered image🖼️.\u003cbr\u003e\n![Maryam Mirzakhani, a light in the dark!](https://raw.githubusercontent.com/pycdr/pyshred-pro/master/test/input_example.jpg \"Maryam Mirzakhani\")\n![Maryam Mirzakhani, a light in the dark!](https://raw.githubusercontent.com/pycdr/pyshred-pro/master/test/output_example.jpg \"Maryam Mirzakhani\")\n## Install \nfor installing, first you should clone pyshred:\u003cbr\u003e\n\u003e ``git clone https://github.com/pycdr/pyshred-pro``\n\nnext, we need to install python packages which are written in **requirements.txt** via pip:\n\u003e ``pip install -r requirements.txt``\n\nwe're ready! start to use it! 🙂️\n\n## usage\njust run this:\n```\npython3 run.py --input \u003cpath\u003e --output \u003cpath\u003e\n# or\npython3 run.py -i \u003cpath\u003e -o \u003cpath\u003e\n```\nwhere ``\u003cpath\u003e``s are the path of input/output file(e.g. image.png, pic.jpg, output.txt, ...)\n\u003e **notice that run this on pyshred-pro directory, or have config.json file in the directory.**\n## how it works?\n### what are the files?\n+ the main file of pyshred in **run.py** and it get your commands.\u003cbr\u003e\n+ **export.py** and **tools.py** are other python files that main file use them.\u003cbr\u003e\n+ **config.json** get some features(will be explained)\n\n### pyshred modes\nhere are 3 modes in pyshred-pro:\n#### convert mode\nconvert image to designed text.\u003cbr\u003e\nfor example, if you want to convert _input.jpg_ to _output.txt_ the mode will be set on **convert**, and your command will be like this:\n\u003e ``python3 run.py -i input.jpg -o output.txt``\n#### reconvert mode\nconvert designed text to image.\u003cbr\u003e\nfor example, if you want to convert _input.txt_ to _output.jpg_ the mode will be set on **reconvert**, and your command will be like this:\n\u003e ``python3 run.py -i input.txt -o output.jpg``\n#### dualconvert mode\nconvert image to image, but output will be different from input!\u003cbr\u003e\nthe **dualconvert** mode, first convert image to text(**convert** mode), then convert taken text to image(**reconvert** mode).\u003cbr\u003e\nfor example, if you want to convert _input.jpg to _output.jpg_ the mode will be set on **reconvert**, and your command will be like this:\n\u003e ``python3 run.py -i input.jpg -o output.jpg``\n\n## summary\n\n| from  | to     | mode        | command                                   |\n|------ | ------ | ----------- | ----------------------------------------- |\n| image | text   | convert     | python3 run.py -i input.jpg -o output.txt |\n| text  | image  | reconvert   | python3 run.py -i input.txt -o output.jpg |\n| image | image  | dualconvert | python3 run.py -i input.jpg -o output.jpg |\n## config\nwhen you run pyshred, it reads **config.json** to set some features.\u003cbr\u003e\nby default, it's like this:\n```json\n{\n\t\"convert\":{\n\t\t\"output\":{\n\t\t\t\"width\":\"input\",\n\t\t\t\"height\":\"input\"\n\t\t}\n\t},\n\t\"reconvert\":{\n\t\t\"output\":{\n\t\t\t\"width\":\"input\",\n\t\t\t\"height\":\"input\"\n\t\t}\n\t}\n}\n```\n### how it works\n+ convert\n\t+ output\n\t\t+ width : width of output(e.g. 10,100,31,....)(\"input\"=width of input)\n\t\t+ height : height of output(e.g. 10,100,31,....)(\"input\"=height of input)\n+ reconvert\n\t+ output\n\t\t+ width : width of output(e.g. 10,100,31,....)(\"input\"=width of input)\n\t\t+ height : height of output(e.g. 10,100,31,....)(\"input\"=height of input)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnxpy%2Fpyshred-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnxpy%2Fpyshred-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnxpy%2Fpyshred-pro/lists"}