is there only two types of image compression now,
1. After the front-end js canvas is compressed, it is converted to base64,post and then saved to the backend as an image
2. Upload the image file directly to the backend, compress it on the server side, and then save
do not know which of the two ways is better, I now prefer method 1, so upload quickly
ask the boss to analyze the pros and cons from the aspects of security, efficiency, browser support and so on.