{"id":15873833,"url":"https://github.com/phronmophobic/htmltoimage","last_synced_at":"2025-04-01T22:43:24.786Z","repository":{"id":143868534,"uuid":"346479340","full_name":"phronmophobic/htmltoimage","owner":"phronmophobic","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-10T20:12:13.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T19:42:14.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phronmophobic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-10T20:11:14.000Z","updated_at":"2021-03-12T19:24:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"257fed7b-4e7f-41f6-a580-ac142c73152d","html_url":"https://github.com/phronmophobic/htmltoimage","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"4008f625c1763b2338831e2a45266c52745ec6bf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fhtmltoimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fhtmltoimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fhtmltoimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fhtmltoimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phronmophobic","download_url":"https://codeload.github.com/phronmophobic/htmltoimage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724797,"owners_count":20823543,"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":[],"created_at":"2024-10-06T01:07:20.112Z","updated_at":"2025-04-01T22:43:24.760Z","avatar_url":"https://github.com/phronmophobic.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# htmltoimage\n\nExample of using clj-cef to convert a URL to an image.\n\n## Linux Dependencies\n\n```sh\napt install xvfb libatk1.0-dev libatk-bridge2.0-dev libxkbcommon-dev libxcomposite-dev libxrandr-dev libgbm-dev\n```\n\n## Framework dependencies\n\nThe cef framework is about 80MB compressed (~230MB uncompressed) which makes it a poor fit including within the library jar. On linux, the CEF framework is 300MB compressed and 1GB uncompressed.\n\nDownload the framework. This may take a while.\n\n```sh\nclojure -Sdeps '{:deps {com.phronemophobic/clirun {:mvn/version \"1.0.0\"}}}' -M -m com.phronemophobic.clirun com.phronemophobic.cef/download-and-extract-framework\n```\n\n## Usage\n\nNote:If running on linux without a display, prefix commands with `xvfb-run`.\n\nBasic usage:\n\n    $ clojure -X clj-cef.htmltoimage/-main :url '\"https://blog.phronemophobic.com/what-is-a-user-interface.html\"'\n\nWith xvfb:\n\n    $ xvfb-run clojure -X clj-cef.htmltoimage/-main :url '\"https://blog.phronemophobic.com/what-is-a-user-interface.html\"'\n    \nExtra options:\n\n    $ clojure -X clj-cef.htmltoimage/-main :url '\"https://blog.phronemophobic.com/what-is-a-user-interface.html\"' :size '[1000 300]' :out '\"mysite.png\"'\n\n## License\n\nCopyright © 2021 Adrian\n\nDistributed under the Eclipse Public License version 1.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fhtmltoimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphronmophobic%2Fhtmltoimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fhtmltoimage/lists"}