Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Outline

fast codecs bindings for node and browsers

npm i @imagescript/codecs

import { png } from '@imagescript/codecs';

const rgba = new Uint32Array(256 * 256);
const image = png.encode(rgba, { width: 256, height: 256 });

supported platforms

node@10 node@12 node@14 node@16
wasm32
macos x64
macos arm64
windows x64
linux x64 gnu
linux arm64 gnu

you can force usage of wasm by setting CODECS_FORCE_WASM env variable

for deno and browsers use @imagescript/codecs/wasm/bundle/browser.js cdn

benchmarks

image used for benchmarks: new framebuffer(width, height).fill((x, y) => x * y)

benchmark

benchmark

benchmark

License

MIT © evan matmen

Morty Proxy This is a proxified and sanitized view of the page, visit original site.