Skip to content

About

Decode esoteric image formats in the browser using WebAssembly

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

obscura-image

npm

Decode esoteric image formats in the browser using WebAssembly.

Usage

import init, { decodeTiff } from "obscura-image";

await init();

// Decode TIFF to PNG
const result = decodeTiff(tiffData);

// Access decoded images
for (const image of result.images) {
  console.log(image.metadata); // width, height, color_type, bit_depth
  const blob = new Blob([image.png_data], { type: "image/png" });
  // Use the blob as needed
}

Development

  • To run the web frontend, serve it from this directory with e.g. live-server or Python's http.server, then navigate to http://localhost:8080/test-web/test.html (substitute port as needed).

License

MIT

About

Decode esoteric image formats in the browser using WebAssembly

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages