canvas.convertToBlob() doesn't throw on a format it can't encode. It hands you a PNG.
DEV Community
canvas.convertToBlob() doesn't throw on a format it can't encode. It hands you a PNG.
You can convert images between JPEG, PNG and WebP in the browser with no library at all. But the encode step fails silently in a way that's genuinely hard to trace.
0 comments
No comments yet.