{"id":15484921,"url":"https://github.com/codenoid/go-screenshot","last_synced_at":"2025-04-22T17:10:34.753Z","repository":{"id":100300596,"uuid":"229674146","full_name":"codenoid/go-screenshot","owner":"codenoid","description":"Go package for taking screenshot from Linux+, Windows-, Mac- ","archived":false,"fork":false,"pushed_at":"2020-01-30T20:49:51.000Z","size":3,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T17:11:08.842Z","etag":null,"topics":["go-library","screenshot","x11"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codenoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-12-23T04:07:08.000Z","updated_at":"2024-09-15T13:26:25.000Z","dependencies_parsed_at":"2023-05-13T14:15:40.634Z","dependency_job_id":null,"html_url":"https://github.com/codenoid/go-screenshot","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/codenoid%2Fgo-screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2Fgo-screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2Fgo-screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2Fgo-screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenoid","download_url":"https://codeload.github.com/codenoid/go-screenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285697,"owners_count":21405297,"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-library","screenshot","x11"],"created_at":"2024-10-02T06:00:33.163Z","updated_at":"2025-04-22T17:10:34.716Z","avatar_url":"https://github.com/codenoid.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Screenshot\n\nanother library for taking screenshot on your Linux+,Windows-,Mac-\n\nthere is many feature that still missing (like choosing display, set size, etc), and currently only support for linux, and don't worry about [this bug](https://github.com/BurntSushi/xgb/issues/32) because you can open once and reuse xgb connection\n\n## Installation\n\n```\ngo get -u github.com/codenoid/go-screenshot\n```\n\n## Usage\n\n```\npackage main\n\nimport (\n\t\"image/jpeg\"\n\t\"os\"\n\n\tscreenshot \"github.com/codenoid/go-screenshot\"\n)\n\nfunc main() {\n\t// start xgb session, you can reuse this for anything else\n\txgbconn, err := screenshot.NewSession()\n\tif err != nil {\n\t\treturn\n\t}\n\tdefer xgbconn.Close()\n\n\t// call screenshot method\n\tss := screenshot.Start{\n\t\tXgbConn: xgbconn,\n\t}\n\n\t// capture current screen frame\n\timg, err := ss.CaptureScreen()\n\n\tf, err := os.Create(\"screenshot.jpg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer f.Close()\n\n\tjpeg.Encode(f, img, nil)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenoid%2Fgo-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenoid%2Fgo-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenoid%2Fgo-screenshot/lists"}