logoalt Hacker News

DaleCurtisyesterday at 10:47 PM2 repliesview on HN

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().


Replies

valadaptivetoday at 6:56 AM

Firefox now adds random noise to all canvas readback operations (getImageData, toDataURL, and toBlob).

fouctoday at 6:29 AM

That would require a browser that supports WebP