{"id":19032724,"url":"https://github.com/joutvhu/libheif-web","last_synced_at":"2026-01-16T06:10:33.091Z","repository":{"id":57747720,"uuid":"520470511","full_name":"joutvhu/libheif-web","owner":"joutvhu","description":"An emscripten build of libheif distributed as an npm module for the browser.","archived":false,"fork":false,"pushed_at":"2026-01-13T09:01:52.000Z","size":1856,"stargazers_count":11,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T11:37:51.942Z","etag":null,"topics":["browser","convert","heif-converter","libheif","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/libheif-web","language":"TypeScript","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/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-02T11:29:34.000Z","updated_at":"2025-09-10T14:11:34.000Z","dependencies_parsed_at":"2023-02-13T00:45:59.638Z","dependency_job_id":"cc2fb3f4-cf4f-48dd-8037-c811622e4d27","html_url":"https://github.com/joutvhu/libheif-web","commit_stats":{"total_commits":91,"total_committers":3,"mean_commits":"30.333333333333332","dds":0.4505494505494505,"last_synced_commit":"37afe74604a426f871f349f5c3f89a5af23ab25d"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/joutvhu/libheif-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Flibheif-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Flibheif-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Flibheif-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Flibheif-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/libheif-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Flibheif-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["browser","convert","heif-converter","libheif","typescript"],"created_at":"2024-11-08T21:30:44.743Z","updated_at":"2026-01-16T06:10:33.066Z","avatar_url":"https://github.com/joutvhu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libheif for Web\n\nAn emscripten build of [libheif](https://github.com/strukturag/libheif) distributed as an npm module for the browser.\n\n## Installation\n\n```shell\nnpm i libheif-web\n```\n\n### Set libheif url\n\nDownload [libheif.min.js](https://github.com/joutvhu/libheif-web/releases/download/v1.14.0_libheif/libheif.min.js) from the [libheif v1.12.0 release](https://github.com/joutvhu/libheif-web/releases/tag/v1.12.0_libheif) and put it in your project's `assets` folder.\n\nUse following code to set url for libheif.\n\n```ts\nimport {useUrl} from 'libheif-web';\n\nuseUrl('assets/scripts/libheif.min.js');\n```\n\nIf you skip this step the url will automatically point to [libheif.min.js](https://github.com/joutvhu/libheif-web/releases/download/v1.14.0_libheif/libheif.min.js)\n\n## Using\n\n```ts\nimport {convertHeif, convertAllOfHeif} from 'libheif-web';\n\nconst pngImage = await convertHeif(heicFile, 'filename.png', 'image/png');\n\nconst images = await convertAllOfHeif(heicFile);\nconst firstPng = await images[0].convert('filename.png', 'image/png');\nconst secondPng = await images[1].convert('filename.png', 'image/png');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Flibheif-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Flibheif-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Flibheif-web/lists"}