@shuhei/incomplete-image-parser

An incomplete image parser that can be use to peek into binary data of image files

Usage no npm install needed!

<script type="module">
  import shuheiIncompleteImageParser from 'https://cdn.skypack.dev/@shuhei/incomplete-image-parser';
</script>

README

Incomplete Image Metadata Parsers

Incomplete image metadata parsers that I wrote to learn how metadata is stored in image files

Formats

  • JPEG
  • PNG
  • GIF
  • WebP
  • JPEG 2000

Note that implementations are incomplete even if they have checkmarks here!

Usage

Via HTTP(S) - Image format is chosen by the Content-Type header:

node index.js https://foo.com/bar.jpg

Via file system - Image format is chosen by the file extension:

node index.js ./foo.webp