{"id":13527897,"url":"https://github.com/apex/capture","last_synced_at":"2025-08-30T20:08:20.561Z","repository":{"id":146132396,"uuid":"63302528","full_name":"apex/capture","owner":"apex","description":"Lambda function to capture a URL as PNG, JPG, or GIF using PhantomJS","archived":false,"fork":false,"pushed_at":"2016-07-14T04:34:25.000Z","size":25551,"stargazers_count":109,"open_issues_count":5,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-25T15:39:52.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/apex.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}},"created_at":"2016-07-14T04:33:51.000Z","updated_at":"2024-12-03T12:21:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"35aa40d8-087d-47d9-8aa3-467de8c711e8","html_url":"https://github.com/apex/capture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apex/capture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fcapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fcapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fcapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fcapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apex","download_url":"https://codeload.github.com/apex/capture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fcapture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272900157,"owners_count":25012033,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-01T06:02:05.798Z","updated_at":"2025-08-30T20:08:20.542Z","avatar_url":"https://github.com/apex.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n# capture\n\nLambda function to convert a URL to PNG, JPEG, or GIF using PhantomJS.\n\n## Installation\n\nAdd capture to your Apex project:\n\n```\n$ git submodule add https://github.com/apex/capture.git functions/capture\n```\n\nDeploy it:\n\n```\n$ apex deploy capture\n```\n\nTry it:\n\n```\n$ apex invoke capture \u003c functions/capture/event.json\n```\n\n## API\n\nInput:\n\n - `url` (string) URL to render\n - `format` (string) output format, one of 'png', 'jpeg', or 'gif' (default: 'png')\n - `viewport` (object) viewport size with .width and .height (default: 1024x800)\n - `clip` (object) clip rect with .top, .left, .width, and .height (default: none)\n - `zoom` (number) zoom factor (default: 1)\n - `wait` (number) wait time in milliseconds (default: 250)\n - `backgroundColor` (string) body background color (default: none)\n\nOutput:\n\n - `capture` (string) base64 output\n\n## Badges\n\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n![](https://img.shields.io/badge/status-stable-green.svg)\n[![](http://apex.sh/images/badge.svg)](https://apex.sh/ping/)\n\n---\n\n\u003e [tjholowaychuk.com](http://tjholowaychuk.com) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@tj](https://github.com/tj) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@tjholowaychuk](https://twitter.com/tjholowaychuk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex%2Fcapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapex%2Fcapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex%2Fcapture/lists"}