Closed jetrotal closed 2 years ago
I see what I got wrong.
I imported on my html as
<script src='https://cdnjs.cloudflare.com/ajax/libs/upng-js/2.1.0/UPNG.min.js'> </script>
instead of:
<script type="module">
import upngJs from "https://cdn.skypack.dev/upng-js@2.1.0";
window.UPNG = upngJs;
</script>
Hey guys, I'm trying to use upng to generate a indexed-color image, but I can't figure out how to run upng function.
The issue I'm having happens in this page: https://codepen.io/jetrotau/pen/wvmMBeG
if I go on the pen's Iframe and type:
I get the error:
Cannot read properties of undefined (reading 'deflate')
any Idea on what am I doing wrong?
Thanks in advance!