Integrate Magento 2 Image Optimizer Extension to your Magento 2 store and you will get optimized images with reduced file size without any quality loss.