Re:Show HN: WebPtoPNG – I built a WebP to PNG tool, everythi...
by DaleCurtis on Wednesday December 24, 2025 @05:47PM
(#46380117)
FWIW, you can do this with a few lines of JS in the browser using canvas.drawImage() from an img element followed by canvas.toBlob().
[ Parent
| on HN ]
Re:Show HN: WebPtoPNG – I built a WebP to PNG tool, everythi...
by fouc on Thursday December 25, 2025 @01:29AM
(#46382578)
That would require a browser that supports WebP
Re:Show HN: WebPtoPNG – I built a WebP to PNG tool, everythi...
by theandrewbailey on Thursday December 25, 2025 @07:09AM
(#46383923)
...which is, like, all of them in the past 5 years: https://caniuse.com/webp
Re:Show HN: WebPtoPNG – I built a WebP to PNG tool, everythi...
by valadaptive on Thursday December 25, 2025 @01:56AM
(#46382675)
Firefox now adds random noise to all canvas readback operations (getImageData, toDataURL, and toBlob).
Re:Show HN: WebPtoPNG – I built a WebP to PNG tool, everythi...
by DaleCurtis on Thursday December 25, 2025 @12:15PM
(#46385691)
Ah, I didn't realize that always happened. I thought it was only if you did something that might have OS specific rendering characteristics (text-draws, etc).
Maybe having an ImageEncoder API might be worthwhile after all then https://github.com/w3c/webcodecs/issues/204.