https://sangkrit.net/auto-resize-high-resolution-images-during-uploads-in-wordpress/
Auto Resize High Resolution Images During Uploads In WordPress