{"id":18408785,"url":"https://github.com/d2-projects/xbrz","last_synced_at":"2025-06-23T15:33:01.291Z","repository":{"id":42767210,"uuid":"276945257","full_name":"d2-projects/xbrz","owner":"d2-projects","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T19:45:41.000Z","size":337,"stargazers_count":2,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T22:57:01.470Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d2-projects.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":"2020-07-03T16:38:29.000Z","updated_at":"2024-02-13T19:05:43.000Z","dependencies_parsed_at":"2023-02-07T23:31:12.604Z","dependency_job_id":null,"html_url":"https://github.com/d2-projects/xbrz","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/d2-projects/xbrz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fxbrz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fxbrz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fxbrz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fxbrz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d2-projects","download_url":"https://codeload.github.com/d2-projects/xbrz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fxbrz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261504561,"owners_count":23168862,"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-11-06T03:21:27.232Z","updated_at":"2025-06-23T15:33:01.271Z","avatar_url":"https://github.com/d2-projects.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript 中的 xBRZ 算法实现\n\nhigh quality image upscaling filter by Zenju\n\n![npm](https://img.shields.io/npm/v/@d2-projects/xbrz)\n\n在包管理器中引入\n\n``` sh\nnpm i @d2-projects/xbrz\n```\n\n``` js\nimport xbrz from '@d2-projects/xbrz'\n```\n\n在浏览器中引入\n\n``` html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@d2-projects/xbrz/dist/xbrz.js\"\u003e\u003c/script\u003e\n```\n\n使用\n\n```\nxbrz.scaleToCanvas({\n  source: './source.png',\n  canvas: document.querySelector('#canvas'),\n  scale: 6\n})\n```\n\n## 算法实现\n\n* [xbrz](https://sourceforge.net/projects/xbrz/)\n* [xbrz-in-java](https://intrepidis.blogspot.com/2014/02/xbrz-in-java.html)\n* [will-wyx/xbrz](https://github.com/will-wyx/xbrz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2-projects%2Fxbrz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd2-projects%2Fxbrz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2-projects%2Fxbrz/lists"}