Assuming you select the files first, you can use the techniques shown in:
to process each file.
Then Keyboard Maestro can read the image file (Read a File action), resize the image (Resize an Image to Fit action), and then write the file (Write to a File action).
You'll want to ensure you have good backups before attempting any batch operations.