I'm trying to create a tool for users uploading photos, but I want to scale down these photos before they are uploaded.
My initial try was to use the scale function from canvas 2d context, but it create a bad looking images.
I wish I could just use the CSS scale function, but I'm unable to find a way to do that.