{"id":21857573,"url":"https://github.com/hjerpbakk/transparent-png","last_synced_at":"2026-04-15T05:31:46.788Z","repository":{"id":149284988,"uuid":"173953921","full_name":"hjerpbakk/transparent-png","owner":"hjerpbakk","description":"Simple Python script for creating a transparent PNG of a given size.","archived":false,"fork":false,"pushed_at":"2021-09-21T20:06:15.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T14:35:35.968Z","etag":null,"topics":["docker","docker-image","dockerfile","imageoptim","linux","macos","pngout","python","transparent-image","windows"],"latest_commit_sha":null,"homepage":"https://hjerpbakk.com/blog/2019/03/06/transparent-png","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/hjerpbakk.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}},"created_at":"2019-03-05T13:41:36.000Z","updated_at":"2023-03-17T12:15:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d32f9a7-5070-4f3d-b8d7-443852bdf473","html_url":"https://github.com/hjerpbakk/transparent-png","commit_stats":null,"previous_names":["hjerpbakk/transparent-png"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hjerpbakk/transparent-png","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Ftransparent-png","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Ftransparent-png/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Ftransparent-png/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Ftransparent-png/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjerpbakk","download_url":"https://codeload.github.com/hjerpbakk/transparent-png/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2Ftransparent-png/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31828530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","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":["docker","docker-image","dockerfile","imageoptim","linux","macos","pngout","python","transparent-image","windows"],"created_at":"2024-11-28T02:30:01.300Z","updated_at":"2026-04-15T05:31:46.766Z","avatar_url":"https://github.com/hjerpbakk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transparent PNG\n\n[![Pulls from DockerHub](https://img.shields.io/docker/pulls/hjerpbakk/transparent-png.svg)](https://hub.docker.com/r/hjerpbakk/transparent-png)\n\n`transparent_png` is a simple Python script for creating a transparent PNG of a given size.\n\n## Usage\n\n```bash\npython transparent_png.py [OPTION] [X] [Y]\n```\n\n### Options\n\n| Option | Description                                                            |\n|--------|------------------------------------------------------------------------|\n| -o     | Optimizes the created image using ImageOptim, if available, or PNGOUT. |\n\n### Examples\n\n```bash\npython transparent_png.py 42 1337\n```\n\nCreates an image with a width of 42 and a height of 1337, with the name `42x1337.png` and saves it to the current directory.\n\n```bash\npython transparent_png.py -o 100 50\n```\n\nCreates an image of size 100x50 with the name `100x50.png`, optimizes it using [ImageOptim](https://imageoptim.com/mac) (if available on macOS) or [PNGOUT](http://www.jonof.id.au/kenutils) (*nix or Windows) and saves the image to the current directory.\n\n## Running through Docker\n\nInstead of having Python installed on your machine, make Docker do the heavy lifting for you.\n\n### Example running with the image from Docker Hub\n\nA Docker image is [available on Docker Hub](https://hub.docker.com/r/hjerpbakk/transparent-png).\n\n```bash\ndocker run -v $(pwd):/app/image hjerpbakk/transparent-png 42 1337\n```\n\nThe above command creates an image of size 42x1337 with the name `42x1337.png` and saves it to the current directory.\n\nUsing Docker, the same options are available as before. Thus, the following command creates an image of size 100x50 with the name `100x50.png`, optimizes it using PNGOUT and saves the image to the current directory.\n\n```bash\ndocker run -v $(pwd):/app/image hjerpbakk/transparent-png -o 100 50\n```\n\n### Building the image locally\n\nIf you want to build the image yourself, use the following command:\n\n```bash\ndocker build -t hjerpbakk/transparent-png .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Ftransparent-png","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjerpbakk%2Ftransparent-png","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Ftransparent-png/lists"}