{"id":23343804,"url":"https://github.com/ix76y/img-asset-creator","last_synced_at":"2026-05-06T18:31:36.982Z","repository":{"id":153221353,"uuid":"239170619","full_name":"Ix76y/img-asset-creator","owner":"Ix76y","description":"Creating image assets for iOS and Android Apps","archived":false,"fork":false,"pushed_at":"2020-05-19T14:54:57.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T18:46:02.442Z","etag":null,"topics":["android","ios","python","python-script","python3","swift"],"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/Ix76y.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-08T17:08:54.000Z","updated_at":"2020-05-19T14:55:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc80812f-381d-483c-b083-314760403a72","html_url":"https://github.com/Ix76y/img-asset-creator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ix76y%2Fimg-asset-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ix76y%2Fimg-asset-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ix76y%2Fimg-asset-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ix76y%2Fimg-asset-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ix76y","download_url":"https://codeload.github.com/Ix76y/img-asset-creator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685782,"owners_count":20979122,"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":["android","ios","python","python-script","python3","swift"],"created_at":"2024-12-21T06:16:27.188Z","updated_at":"2026-05-06T18:31:31.962Z","avatar_url":"https://github.com/Ix76y.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-asset-creator\nCreating image assets for iOS and Android Apps with Python3 from the command-line.\n\nI build this script to easily create image assets for iOS and Android Apps. You can pass an image or a folder of images to the script, define which size the images should be and for which platform and it will scale the images and save them.\n\nThe script will handle the correct scaling and naming for iOS and Android.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine.\n\n### Prerequisites\n\nIn order to run the script you need to have python3 installed on your machine. The script also makes use of the Pillow module.\nIf you have pip installed you can simply run the script and it will install Pillow for you, otherwise you have to install it yourself.\n\n### Runnning the script\n\nTo download the project you can either download it from the browser or over the command-line and git, by running the following command.\n```\ngit clone git@github.com:Ix76y/img-asset-creator.git\n```\nAfter that you can run the script with the following command, which will show you all available options\n```\npython3 imgasset.py --help\n```\n\n## Examples\nHere are some example usages for the script.\n\nFor example if you have one image called **pineapple.png** and you want to have this image for **iOS** with a **width** of **1200px**(\\@3x), 800px(\\@2x) and 400px (\\@1x). ***Note:*** *You just have to pass the biggest width or height, the rest will be calculated accordingly.*\n```\npython3 imgasset.py -iOS -w 1200 pineapple.png\n\n# Output:\n  |-- pineapple.png\n  |-- pineapple@1x.png\n  |-- pineapple@2x.png\n  |-- pineapple@3x.png\n```\n\nIf you have a folder called \u003ccode\u003einput\u003c/code\u003e of images and you want them all for **Android** with a **height** of **1800px** for xxxhdpi then you can run the following command.\n```\npython3 imgasset.py -android -h 1800 /input\n\n# Output:\n  |-- input\n  |-- xxxhdpi\n  |-- -- ...\n  |-- xxhdpi\n  |-- -- ...\n  |-- xhdpi\n  |-- -- ...\n  |-- hdpi\n  |-- -- ...\n  |-- mdpi\n  |-- -- ...\n  |-- ldpi\n  |-- -- ...\n  # each of the folders contains all the scaled images that are in the input folder\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Notes\n* Feel free to use this script and\n* let me know if you are missing any functionality\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fix76y%2Fimg-asset-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fix76y%2Fimg-asset-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fix76y%2Fimg-asset-creator/lists"}