{"id":18229735,"url":"https://github.com/vindolin/_temp_","last_synced_at":"2026-01-21T18:01:57.924Z","repository":{"id":16860835,"uuid":"19620976","full_name":"vindolin/_temp_","owner":"vindolin","description":null,"archived":false,"fork":false,"pushed_at":"2014-05-09T18:59:34.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T09:22:44.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vindolin.png","metadata":{"files":{"readme":"README.rst","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":"2014-05-09T18:19:59.000Z","updated_at":"2014-05-09T18:59:36.000Z","dependencies_parsed_at":"2022-09-24T10:36:50.994Z","dependency_job_id":null,"html_url":"https://github.com/vindolin/_temp_","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vindolin/_temp_","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2F_temp_","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2F_temp_/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2F_temp_/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2F_temp_/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vindolin","download_url":"https://codeload.github.com/vindolin/_temp_/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2F_temp_/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28638492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T17:36:33.271Z","status":"ssl_error","status_checked_at":"2026-01-21T17:36:30.617Z","response_time":86,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-04T10:03:28.248Z","updated_at":"2026-01-21T18:01:57.908Z","avatar_url":"https://github.com/vindolin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Slice Android style 9-patch images into tiles and resize them into a scaled version\n------------\n\n.. image:: https://travis-ci.org/vindolin/ninepatch.svg?branch=master\n   :width: 90\n   :alt: Travis CI\n   :target: https://travis-ci.org/vindolin/ninepatch\n\n\nsee https://developer.android.com/tools/help/draw9patch.html\n\nPython usage\n------------\n\n.. code-block:: python\n\n\n    from ninepatch import Ninepatch\n    ninepatch = Ninepatch('9patch_test.png')\n    scaled_image = ninepatch.render(500, 400) # creates a new PIL image\n\nCommand line usage\n------------------\n\nYour image must be a png image with a transparent background. The scale\nguide color must be 100% opaque black.\n\nopen the scaled image in a viewer\n\n::\n\n    $ ninepatch 9patch_test.png 300 300\n\nsave the scaled image to a new file\n\n::\n\n    $ ninepatch 9patch_test.png 300 300 scaled.png\n\nNotes\n-----\n\nYou can see the module in action in the ninepatch\\_actor.py from my\nClutter example project:\nhttps://github.com/vindolin/Clutter-Python-examples\n\nIssues\n------\n\nTODO\n----\n\nValidate Image and show user errors\nParse fill area guides\n\nSee the example/unittest image:\n\n.. image:: https://raw.githubusercontent.com/vindolin/ninepatch/master/ninepatch/test/ninepatch_bubble.png\n   :width: 320\n   :alt: Example image\n   :target: https://raw.githubusercontent.com/vindolin/ninepatch/master/ninepatch/test/ninepatch_bubble.png\n\nOnly the scalable guides are used, fill area guides are ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2F_temp_","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvindolin%2F_temp_","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2F_temp_/lists"}