{"id":24557509,"url":"https://github.com/huang-x-h/html2image","last_synced_at":"2026-03-11T13:13:18.425Z","repository":{"id":57267847,"uuid":"42837942","full_name":"huang-x-h/html2image","owner":"huang-x-h","description":"convert html to image/pdf by phantomjs","archived":false,"fork":false,"pushed_at":"2022-01-24T10:24:31.000Z","size":34,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T06:33:43.164Z","etag":null,"topics":["html2image","phantomjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/huang-x-h.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-09-21T01:50:48.000Z","updated_at":"2023-03-14T21:29:44.000Z","dependencies_parsed_at":"2022-09-02T05:41:01.613Z","dependency_job_id":null,"html_url":"https://github.com/huang-x-h/html2image","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/huang-x-h%2Fhtml2image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-x-h%2Fhtml2image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-x-h%2Fhtml2image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-x-h%2Fhtml2image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huang-x-h","download_url":"https://codeload.github.com/huang-x-h/html2image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249543296,"owners_count":21288703,"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":["html2image","phantomjs"],"created_at":"2025-01-23T05:17:35.705Z","updated_at":"2026-03-11T13:13:13.405Z","avatar_url":"https://github.com/huang-x-h.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2image\n\n\u003e Convert html to image(png/jpg) or pdf by puppeteer\n\n## Install\n\n    npm i -g html2image\n\n## Usage\n\n    html2image -a https://www.baidu.com\n\n## Options\n\n- `-a, --address [value]` url address\n- `-f, --format [value]` output file format (pdf|png|jpeg|gif)\n- `-o, --output [value]` output file path\n\n## Help\n\n    html2image -h\n\n## TODO\n\nIf the url address contain **\u0026**, you should use **encodeURIComponent** to encode the url address, then pass to the html2image command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang-x-h%2Fhtml2image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuang-x-h%2Fhtml2image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang-x-h%2Fhtml2image/lists"}