How to convert a file in JavaScript

I’m making a website where you can upload art. How do I convert a image file to png in JavaScript?

Have you looked for a package on npmjs.com?

use unpkg if you are making a static site.

Well, I would recommend to use https://jsdelivr.com if you want to use npm package in frontend (Make sure they has Front-end support!!)

You can’t convert a video in the browser, you need to do that with server side code.

How about images?

I’m sure to some extent you can do this kind of thing in the browser, however, its quite complex and wouldn’t be worth your time. Check out NodeJS, if you already understand Javascript it should be very easy. Its just javascript for servers.