How to do the specified proportion of picture upload in vue+element?

the problem now is that the pictures uploaded to the background need to be cropped in a specified proportion, such as cropping the uploaded pictures to 4:3 before uploading. Is there a good way to do this?

Sep.26,2021

use canvas to do this, of course, you can also look for plug-ins

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e51332-45119.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e51332-45119.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?