日本語のREADMEはこちらです: README.ja.md
A image resizer with WebAssembly.
import { ImageResizer } from "https://code4fukui.github.io/ImageResizer/ImageResizer.js";
const imgdata2 = ImageResizer.resize(imgdata, w2);
console.log(imgdata2);class ImageResizer {
static resize(imgdata, wdst, hdst = 0, typ_idx = 0, premultiply = false, colorspc = false);
}typ_idx- 0: Type::Triangle
- 1: Type::Catrom
- 2: Type::Mitchell
- 3: Type::Lanczos3
premultiplyboolcolor_space_conversionbool
with bin2js
deno -A https://code4fukui.github.io/bin2js/bin2js.js squoosh_resize_bg.wasmForked from Resize of GoogleChromeLabs/squoosh
- Source: https://github.com/PistonDevelopers/resize
- Version: v0.3.0
- License: MIT