{"id":47660789,"url":"https://github.com/josepmedialdea/backdrop","last_synced_at":"2026-04-02T11:01:42.122Z","repository":{"id":346443599,"uuid":"1185536738","full_name":"josepmedialdea/backdrop","owner":"josepmedialdea","description":"🖼️ CLI tool that fills transparent image backgrounds with a solid color. Supports local files, URLs, and emoji   input.","archived":false,"fork":false,"pushed_at":"2026-03-23T22:16:00.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-24T21:03:10.565Z","etag":null,"topics":["cli","emoji","go","golang","image-processing","transparency"],"latest_commit_sha":null,"homepage":"","language":"Go","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/josepmedialdea.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T17:27:39.000Z","updated_at":"2026-03-23T22:16:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/josepmedialdea/backdrop","commit_stats":null,"previous_names":["josepmedialdea/backdrop"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/josepmedialdea/backdrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josepmedialdea%2Fbackdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josepmedialdea%2Fbackdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josepmedialdea%2Fbackdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josepmedialdea%2Fbackdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josepmedialdea","download_url":"https://codeload.github.com/josepmedialdea/backdrop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josepmedialdea%2Fbackdrop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31304998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"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":["cli","emoji","go","golang","image-processing","transparency"],"created_at":"2026-04-02T11:00:52.117Z","updated_at":"2026-04-02T11:01:42.114Z","avatar_url":"https://github.com/josepmedialdea.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- LOGO --\u003e\n\u003ch1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://em-content.zobj.net/thumbs/160/apple/391/framed-picture_1f5bc-fe0f.png\" width=\"100px\"\u003e\n  \u003cbr\u003ebackdrop\n\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    CLI tool that fills transparent image backgrounds with a solid color.\n    \u003cbr /\u003e\n    \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e\n    ·\n    \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\n    ·\n    \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\n    ·\n    \u003ca href=\"#examples\"\u003eExamples\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## About\n\nbackdrop takes an image with a transparent background — a local file, URL, or emoji — and fills it with a solid color.\n\nI built this to generate consistent project avatars for GitLab, but it works anywhere you need a quick, polished image with a colored background — favicons, social cards, README badges, etc.\n\n## Features\n\n- **Multiple input sources** — local files, HTTP(S) URLs, or emoji (e.g. `🏠`)\n- **Flexible color input** — hex (`#FF5733`) or RGB (`255,87,51`)\n- **Square mode** — force output to a perfect square\n- **Padding** — add breathing room in pixels (`--padding 20`) or as a percentage of the image (`--padding 10%`)\n\n## Installation\n\n### Homebrew\n\n```sh\nbrew install josepmedialdea/tap/backdrop\n```\n\n### From source\n\n```sh\ngit clone https://github.com/josepmedialdea/backdrop.git\ncd backdrop\nmake build\n# binary is at ./bin/backdrop\n```\n\n### Go install\n\n```sh\ngo install github.com/josepmedialdea/backdrop/cmd/backdrop@latest\n```\n\n## Usage\n\n```\nbackdrop \u003cimage|emoji\u003e [flags]\n```\n\n### Flags\n\n| Flag | Short | Default | Description |\n|------|-------|---------|-------------|\n| `--color` | `-c` | `#000000` | Background color as hex (`#rrggbb`) or `R,G,B` |\n| `--output` | `-o` | auto | Output file path (default: `\u003cinput\u003e_bg.\u003cext\u003e`) |\n| `--force` | | `false` | Overwrite output file if it already exists |\n| `--square` | | `false` | Make output image a perfect square |\n| `--padding` | | `0` | Padding on all sides: pixels (e.g. `20`) or percentage (e.g. `10%`) |\n\n## Examples\n\n```sh\n# Fill a local PNG with a blue background\nbackdrop logo.png -c \"#3498db\"\n\n# Fetch an image from a URL and apply a red background\nbackdrop https://example.com/icon.png -c 255,0,0\n\n# Render an emoji with a dark background\nbackdrop 🦞 -c \"#1a1a2e\"\n\n# Square output with 10% padding\nbackdrop logo.png -c \"#2ecc71\" --square --padding 10%\n\n# Explicit output path, overwrite if exists\nbackdrop logo.png -c \"#000000\" -o result.png --force\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosepmedialdea%2Fbackdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosepmedialdea%2Fbackdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosepmedialdea%2Fbackdrop/lists"}