@alt1/datapng-loader

Simple loader that sets the sRGB png header to perceptual to ensure that browsers decode the image into the exact original pixel values.

Usage no npm install needed!

<script type="module">
  import alt1DatapngLoader from 'https://cdn.skypack.dev/@alt1/datapng-loader';
</script>

README

Datapng loader

Simple loader that sets the sRGB png header to perceptual to ensure that browsers decode the image into the exact original pixel values.

imagedata-loader also does this, there is no need to stack them. This loader can be used when the image data is loaded differently.