https://github.com/d2-projects/xbrz
https://github.com/d2-projects/xbrz
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d2-projects/xbrz
- Owner: d2-projects
- License: mit
- Created: 2020-07-03T16:38:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:45:41.000Z (over 3 years ago)
- Last Synced: 2025-04-19T22:57:01.470Z (about 1 year ago)
- Language: JavaScript
- Size: 329 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScript 中的 xBRZ 算法实现
high quality image upscaling filter by Zenju

在包管理器中引入
``` sh
npm i @d2-projects/xbrz
```
``` js
import xbrz from '@d2-projects/xbrz'
```
在浏览器中引入
``` html
```
使用
```
xbrz.scaleToCanvas({
source: './source.png',
canvas: document.querySelector('#canvas'),
scale: 6
})
```
## 算法实现
* [xbrz](https://sourceforge.net/projects/xbrz/)
* [xbrz-in-java](https://intrepidis.blogspot.com/2014/02/xbrz-in-java.html)
* [will-wyx/xbrz](https://github.com/will-wyx/xbrz)