{"id":15320963,"url":"https://github.com/zijiren233/go-text2picture","last_synced_at":"2025-07-15T19:48:33.023Z","repository":{"id":59048289,"uuid":"530446015","full_name":"zijiren233/go-text2picture","owner":"zijiren233","description":"Golang simple text to text to picture","archived":false,"fork":false,"pushed_at":"2022-10-03T12:42:26.000Z","size":4998,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:39:23.814Z","etag":null,"topics":["go","golang","image","picture","text-conversion","text2image","text2picture"],"latest_commit_sha":null,"homepage":"https://github.com/zijiren233/go-text2picture","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/zijiren233.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}},"created_at":"2022-08-30T00:52:21.000Z","updated_at":"2023-08-16T03:19:01.000Z","dependencies_parsed_at":"2023-01-19T03:16:33.864Z","dependency_job_id":null,"html_url":"https://github.com/zijiren233/go-text2picture","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijiren233%2Fgo-text2picture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijiren233%2Fgo-text2picture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijiren233%2Fgo-text2picture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijiren233%2Fgo-text2picture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zijiren233","download_url":"https://codeload.github.com/zijiren233/go-text2picture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248980123,"owners_count":21193105,"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","golang","image","picture","text-conversion","text2image","text2picture"],"created_at":"2024-10-01T09:09:27.184Z","updated_at":"2025-04-14T23:33:59.977Z","avatar_url":"https://github.com/zijiren233.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-text2picture\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"image/color\"\n\t\"io\"\n\t\"os\"\n\n\t\"github.com/zijiren233/go-text2picture\"\n)\n\nfunc main() {\n\tpic := text2picture.NewPictureWithBackGround(text2picture.NewColorPicture(500, 100, text2picture.White), 320, 10, 5)\n\tpic.DrawWithBlack(\"test 123\\n4321...\")\n\tpic.DrawWithColor(text2picture.Red, \"test color ... \")\n\tpic.PointOffset(0, float64(pic.NextLineDistance()))\n\tpic.DrawWithBlack(\"test offset\")\n\tpic.DrawWithBlack(\"   test auto newline\")\n\tf, err := os.OpenFile(\"./test.png\", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, os.ModePerm)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tdefer f.Close()\n\tio.Copy(f, pic.GeneratePicture())\n}\n```\n\n\u003cimg src=\"https://github.com/zijiren233/go-text2picture/blob/main/example/example.png\" /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzijiren233%2Fgo-text2picture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzijiren233%2Fgo-text2picture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzijiren233%2Fgo-text2picture/lists"}