{"id":21997716,"url":"https://github.com/osfunapps/os_image_handler-py","last_synced_at":"2025-10-04T02:02:13.851Z","repository":{"id":98762981,"uuid":"250007103","full_name":"osfunapps/os_image_handler-py","owner":"osfunapps","description":"This script contains fundamental image manipulation actions.","archived":false,"fork":false,"pushed_at":"2021-02-07T14:03:48.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T04:45:12.123Z","etag":null,"topics":["graphics","image","image-processing","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/osfunapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-03-25T14:51:45.000Z","updated_at":"2023-08-11T07:13:48.000Z","dependencies_parsed_at":"2023-05-25T05:30:39.880Z","dependency_job_id":null,"html_url":"https://github.com/osfunapps/os_image_handler-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osfunapps/os_image_handler-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_image_handler-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_image_handler-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_image_handler-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_image_handler-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfunapps","download_url":"https://codeload.github.com/osfunapps/os_image_handler-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_image_handler-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254467,"owners_count":25956600,"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-10-04T02:00:05.491Z","response_time":63,"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":["graphics","image","image-processing","python"],"created_at":"2024-11-29T22:17:46.946Z","updated_at":"2025-10-04T02:02:13.814Z","avatar_url":"https://github.com/osfunapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nThis script contains fundamental image manipulation actions. \n\nIt is based on Pillow for Python.\n\n## Installation\nInstall via pip:\n\n    pip install os-image-handler \n    \n## Usage Example     \n```python\nfrom os_image_handler import image_handler as ih\n\n# create a background canvas with a background gradient color\nbackground = ih.create_new_image(1024, 500, None, '#FFC1B', '#FF881B')\n\n# add text\nih.draw_text_on_img(background, 'Ball Game!', 20, 20, '#FFFFFF', '/Users/home/Library/Fonts/Consolas.ttf', 150)\n\n# add the ball image\nball = ih.load_img('/Users/home/Desktop/icons/ball.png')\nball = ih.resize_img_by_width(ball, 250)\nih.paste_image(background, ball, 150, 200)\n\n# add the happy lady image\nhappy_lady = ih.load_img('/Users/home/Desktop/icons/happy.png')\nhappy_lady = ih.resize_img_by_width(happy_lady, 250)\nhappy_lady = ih.tilt_image(happy_lady, 45)\nih.paste_image(background, happy_lady, background.width-happy_lady.width*0.7, background.height/2)\n\n# save\nih.save_img(background, '/Users/home/Desktop/ball_game_img.png')\n```\n\n![output](/images/ball_game_img.png)\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_image_handler-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfunapps%2Fos_image_handler-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_image_handler-py/lists"}