David Mzareulyan

Results 48 comments of David Mzareulyan

Hi, I tried to create a minimal reproduce and got even stranger result. Please, see https://stackblitz.com/edit/vitejs-vite-p5ytdp?file=vite.config.js&terminal=dev and run "vite build" It has the "pages" entry commented out in the config,...

I have no separate standalone build (for now) but there is a workaround. You can use the compiled script from the npm (https://unpkg.com/[email protected]/lib/index.js). Add it to the page via and...

I dont think that library should do it. The correct way to scale canvas is to always create canvas with the original APNG dimensions and scale it via CSS. The...

Could you show some minimal code?

It should work that way. Try to check your data, the raw (A)PNG should start from '\x89PNG\x0d\x0a\x1a\x0a' byte sequence.

Could you show your APNG and the exact conversion code?

You should do this (I'll use async/await syntax for brevity): ```javascript const apng = parseAPNG(buffer); // buffer is an ArrayBuffer with the image data await apng.createImages(); // making images for...

@charlesr1971 yes, it possible but not from IMG itself. You should load the image binary data from the src URL (via fetch API or XHR) and parse it using this...

No, it wouldn't work. The only way to obtain APNG data is fetch/XHR.