Product photos decide whether a visitor reaches the buy button or leaves, and they also slow a store page down more than anything else. You have to compress product photos for ecommerce for that reason alone: a 4 MB shot is a twenty-second wait on a phone. The marketplaces make it no easier, since each enforces a different limit and the rejection message explains nothing.
Most cap the file at 10 MB and ask for at least 1000 pixels on the long edge, recommending 1600 or more so the product zoom stays sharp. What gets images rejected is usually the dimensions rather than the bytes: a 600-pixel shot fails a store that wants 1600, however light the file is. Aim for 1600 to 2000 pixels and a final file between 150 and 300 KB.
Because a large area holds exactly the same colour, and that is the cheapest thing you can hand an encoder: JPEG and WebP describe a flat region as one block instead of repeating every pixel. A 2000-pixel shot on pure white at quality 80 lands around 120 to 250 KB, while the same dimensions on wood or fabric land between 700 KB and 1 MB. The difference is not the product, it is the background.
Fine detail goes first: linen weave, grain on leather, sheen on metal. So do not push quality above 85 thinking you are improving matters, and do not run the image through an auto-enhance tool after compressing: it adds contrast and false detail that the encoder then pays for in kilobytes. Keep saturated products, red in particular, away from aggressive compression, since reducing colour resolution smears the product edge.
The quick rule: shoot on pure white, export at 1600 pixels, compress at 80–85, then read the number. If the file is still over 300 KB, the background or the dimensions are the problem, not the slider.