{"id":17695744,"url":"https://github.com/insality/nine-patch-optimizer","last_synced_at":"2025-03-30T23:44:29.702Z","repository":{"id":81026823,"uuid":"471737606","full_name":"Insality/nine-patch-optimizer","owner":"Insality","description":"Tool to make 9patch from images. Optimize image size","archived":false,"fork":false,"pushed_at":"2022-05-15T08:56:54.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T05:18:32.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Insality.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":"2022-03-19T15:36:41.000Z","updated_at":"2022-03-19T15:41:21.000Z","dependencies_parsed_at":"2023-03-23T00:12:45.569Z","dependency_job_id":null,"html_url":"https://github.com/Insality/nine-patch-optimizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fnine-patch-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fnine-patch-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fnine-patch-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fnine-patch-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Insality","download_url":"https://codeload.github.com/Insality/nine-patch-optimizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395572,"owners_count":20770240,"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":[],"created_at":"2024-10-24T14:06:49.841Z","updated_at":"2025-03-30T23:44:29.674Z","avatar_url":"https://github.com/Insality.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nine Patch Image Optimiser\n\nThe python script to check image to make nine patch image and reduce it size.\n\n![](/nine-patch-example.png)\n\n\n# Usage\n\nThe script using the [imagemagick Wand](https://docs.wand-py.org/en/0.6.7/). To install it use next command:\n``` \n$ pip install Wand\n```\n\nYou can pass folder with images, the output folder will be created nearby with script file\n\n`python parse_directory.py ./path_to_image_folder`\n\nYou can pass single image and pass the output name (or it will create the same image nearby script file)\n\n`python parse_file.py ./path_to_image.png ./path_to_output_image.png`\n\n\nThe image output:\n\n![](/tool-example.png)\n\n\n# Output\n\nFor every processed image you will get the next output (I recommend you to store all processed info to single file to check image settings later)\n\n```\nImage: button_purple.png Output: button_purple.png Origin Size: 368x128 New Size: 122x128 9Patch side: [60, 0, 60, 0] Saved: 66.85%\n```\n\nTo use image as before, set in the editor nine patch settings:\n`60 (from left) 0 (from top) 60 (from right) 0 (from bottom)`\n\nAnd set node size to origin size:\n`Origin Size: 368x128`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsality%2Fnine-patch-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsality%2Fnine-patch-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsality%2Fnine-patch-optimizer/lists"}