{"id":24926728,"url":"https://github.com/michaelwp/goWatermark","last_synced_at":"2025-10-17T09:31:22.681Z","repository":{"id":246898381,"uuid":"824497853","full_name":"michaelwp/go-watermark","owner":"michaelwp","description":"This is a Go package to add a watermark onto an image","archived":false,"fork":false,"pushed_at":"2024-07-15T15:02:31.000Z","size":1801,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-16T11:11:41.215Z","etag":null,"topics":["go","image","watermark"],"latest_commit_sha":null,"homepage":"https://www.goblog.dev/articles/33","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/michaelwp.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":"2024-07-05T09:02:57.000Z","updated_at":"2024-07-15T15:01:14.000Z","dependencies_parsed_at":"2024-07-15T10:43:56.960Z","dependency_job_id":"33402045-91ba-44e2-a1bb-23219f4ee60c","html_url":"https://github.com/michaelwp/go-watermark","commit_stats":null,"previous_names":["michaelwp/go-watermark"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-watermark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-watermark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-watermark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-watermark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/go-watermark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236795226,"owners_count":19206006,"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","watermark"],"created_at":"2025-02-02T12:53:15.345Z","updated_at":"2025-10-17T09:31:22.676Z","avatar_url":"https://github.com/michaelwp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goWatermark\nThis package allows you to add customizable watermarks to images using the Go programming language.\nIt provides functionalities for positioning, repeating text, and adjusting font properties.\n\n### Installation\n\n```sh\ngo get github.com/michaelwp/goWatermark\n```\n\n### Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"image/color\"\n\n\t\"github.com/michaelwp/goWatermark\"\n)\n\nfunc main() {\n\terr := gowatermark.AddWatermark(\n\t\t\u0026gowatermark.Watermark{\n\t\t\tImage:      \"input1.jpeg\",\n\t\t\tOutputFile: \"output.jpeg\",\n\t\t\tText:       \"79995782-PTGLOBALPRADANASEJAHTERA-227\",\n\t\t\tPosition: gowatermark.Position{\n\t\t\t\tPosAY: 10,\n\t\t\t},\n\t\t\tFont: gowatermark.Font{\n\t\t\t\tFontSize: 12,\n\t\t\t},\n\t\t\tColor: color.RGBA{\n\t\t\t\tR: 255,\n\t\t\t\tG: 255,\n\t\t\t\tB: 255,\n\t\t\t\tA: 80,\n\t\t\t},\n\t\t\tAlign: gowatermark.AlignCenter,\n\t\t\tRepeat: gowatermark.Repeat{\n\t\t\t\tRepY: 20,\n\t\t\t\tRepX: 10,\n\t\t\t},\n\t\t\tLineSpacing: 25,\n\t\t\tRotate:      -30,\n\t\t\tImgSize: gowatermark.ImgSize{\n\t\t\t\tWidth: 250,\n\t\t\t},\n\t\t},\n\t)\n\tif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n\t} else {\n\t\tfmt.Println(\"Watermark added successfully!\")\n\t}\n}\n```\n\nThis example demonstrates how to configure and apply a watermark to an image using the `go_watermark` package. Adjust the parameters as needed to fit your specific use case.\n\nfor detail explanation visit: [How to Add a Watermark onto an Image Using Go](https://www.goblog.dev/articles/33)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2FgoWatermark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2FgoWatermark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2FgoWatermark/lists"}