Now you can batch process your images to resize them all.
To do this, open Photoshop, then go to File > Automate > Batch. You should now see the Batch window. Choose the set that you created your action in, and then choose your action.
* Noted – If the image is too zoom in, we still need to scale it but retain the size. Avoid Blurry Image too.
( Over Compress into Lossy Image )

Method 1 – https://digital-photography-school.com/how-to-batch-resize-in-photoshop/

Method 2 – Resize and compress images in bulk with Photoshop CC

Method 3 – Use without photoshop – https://www.birme.net/?auto_height=true