Optimizing product images for ecommerce sales involves using high-quality images, compressing them without losing quality, adding alt tags, and optimizing file names for seo. Additionally, using multiple images with different angles, zoom features, and product videos can enhance the customer's experience, leading to increased sales.