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

use unpkg if you are making a static site.

Well, I would recommend to use 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.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.