3 ms·
Most of these go through a canvas element, which is something a browser can "draw on". For conversion from jpg to png for example you don't need any libraries a
by growt 5y ago
Most of these go through a canvas element, which is something a browser can "draw on". For conversion from jpg to png for example you don't need any libraries at all because your webbrowser can read and write both of these formats: "draw" jpg on a canvas and read it as png, done. For others like heic and pdf I used open source JS libraries such as pdfJS.
- aardvark179 5y agoAlthough that is an approach that can work, it's likely a very good way to either lose the colour space and meta data for an image, or to force it into sRGB. which is always a little disappointing if the source and destination support something better.