Re-encode an image to JPEG locally with Canvas; adjust quality and max width. Image is never uploaded.