Skip to content

mybigday/image-codecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-codecs

Pure JS cross platform image encoder/decoder.

Usage

import { encode, decode } from 'image-codecs';

const imageData = decode(buffer);
// Return: { width, height, data: Uint8Array }

const buffer = encode(imageData, 'jpeg'); // or 'bmp', 'png'
// Return: Buffer

Supported formats

  • JPEG
  • BMP
  • PNG

About

Pure JS cross platform image encoder/decoder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published