This task can be performed using Achico
A minimal free macOS local file compressor app
Best product for this task

Achico
oss
A lightweight, native macOS app that intelligently compresses files while maintaining quality. Support for PDF, images, videos, and more! Simple, fast, and efficient!

What to expect from an ideal product
- Drag and drop multiple photos into Achico's window to compress them at once
- Keep your original image quality while reducing file sizes up to 80%
- Save compressed images in the same format or convert them to different ones
- Choose between quick compression or custom settings for better control
- Process unlimited images in bulk without slowing down your Mac