In my client-side browser based app, the user can create a high DPI image on the frontend. This image has a few MB and therefore, it takes some time to upload it. That is not nice for the user.
I can't scale down the image or compress it lossy, as this is a requirement from my client I work for.
Is there any library or native way to compress an e.g. png image lossless?