{"id":19532543,"url":"https://github.com/jackwilsdon/go-ppic","last_synced_at":"2025-04-26T13:33:04.585Z","repository":{"id":57511896,"uuid":"148232033","full_name":"jackwilsdon/go-ppic","owner":"jackwilsdon","description":"A simple profile picture generator written in Go","archived":false,"fork":false,"pushed_at":"2023-03-06T19:58:47.000Z","size":1492,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T10:14:43.123Z","etag":null,"topics":["go","image-generator"],"latest_commit_sha":null,"homepage":"https://go-ppic.herokuapp.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackwilsdon.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":"2018-09-10T23:29:40.000Z","updated_at":"2023-10-16T04:10:59.000Z","dependencies_parsed_at":"2024-06-20T09:23:36.738Z","dependency_job_id":"5618e8bf-89b8-42ac-b6c8-364d1476b6da","html_url":"https://github.com/jackwilsdon/go-ppic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackwilsdon%2Fgo-ppic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackwilsdon%2Fgo-ppic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackwilsdon%2Fgo-ppic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackwilsdon%2Fgo-ppic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackwilsdon","download_url":"https://codeload.github.com/jackwilsdon/go-ppic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224036376,"owners_count":17245035,"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":["go","image-generator"],"created_at":"2024-11-11T01:51:46.767Z","updated_at":"2024-11-11T01:51:47.748Z","avatar_url":"https://github.com/jackwilsdon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"./assets/go-ppic.png\" width=\"32\" height=\"32\" title=\"go-ppic example\"\u003e \u003cimg src=\"./assets/hello-world.png\" width=\"32\" height=\"32\" title=\"go-ppic hello-world example\"\u003e \u003cimg src=\"./assets/jackwilsdon.png\" width=\"32\" height=\"32\" title=\"go-ppic jackwilsdon example\"\u003e go-ppic \u003ca href=\"https://github.com/jackwilsdon/go-ppic/actions/workflows/ci.yml\" title=\"Build status\"\u003e\u003cimg src=\"https://github.com/jackwilsdon/go-ppic/actions/workflows/ci.yml/badge.svg\" title=\"Build status\"\u003e\u003c/a\u003e \u003ca href=\"https://goreportcard.com/report/github.com/jackwilsdon/go-ppic\" title=\"Go Report Card\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/jackwilsdon/go-ppic\" title=\"Go Report Card status\"\u003e\u003c/a\u003e \u003ca href=\"https://godoc.org/github.com/jackwilsdon/go-ppic\" title=\"GoDoc reference\"\u003e\u003cimg src=\"https://godoc.org/github.com/jackwilsdon/go-ppic?status.svg\" title=\"GoDoc reference\"\u003e\u003c/a\u003e\n\nProfile picture generation service written in Go. A demo can be found at [go-ppic.herokuapp.com](https://go-ppic.herokuapp.com/hello).\n\n`go-ppic` provides two commands; [`ppicd`](#ppicd) and [`ppic`](#ppic).\n\n## ppicd\n\n`ppicd` is a web server providing image generation.\n\n### Installation\n\n```Shell\ngo get -u github.com/jackwilsdon/go-ppic/cmd/ppicd\n```\n\n### Usage\n\n```Text\n  -d\tenable pprof debug routes\n  -h string\n    \thost to run the server on\n  -p uint\n    \tport to run the server on (default 3000)\n  -v\tenable verbose output\n  -z\tenable gzip compression\n```\n\nAfter starting up the server, you should see something similar to the following output;\n\n```Text\n2006/01/02 15:04:05 starting server on http://127.0.0.1:3000...\n```\n\nVisiting the URL that the server is running on will give you the image for an empty string. You can get the image for\nthe string \"example\" by visiting `/example` on the server (`http://127.0.0.1:3000/example` in this case).\n\n### URL Parameters\n\nThe server accepts the following query parameters to change the response;\n\n * `?size=N` → specify the size of the image to return (must be a multiple of 8)\n * `?monochrome` → change the image to black and white\n\n### Supported Extensions\n\nBy default the server will respond in PNG format, but it also supports the following file extensions;\n\n * `.gif`\n * `.jpeg`\n\n## ppic\n\n`ppic` is used to generate profile pictures on the command line, without having to run a web server. `ppic` outputs the generated image to stdout.\n\n### Installation\n\n```Shell\ngo get -u github.com/jackwilsdon/go-ppic/cmd/ppic\n```\n\n### Usage\n\n```Text\nusage: ppic text [size] \u003e image.png\n```\n\n\u003e `size` defaults to 512 if not provided\n\n### Examples\n\n```Shell\nppic jackwilsdon 1024 \u003e profile.png\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackwilsdon%2Fgo-ppic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackwilsdon%2Fgo-ppic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackwilsdon%2Fgo-ppic/lists"}