KITFORMA · EDITORIAL ANSWER
Why does object-fit:cover crop the subject of a product image?
KitForma editorial guide. Compare cover and contain using the same 2:1 image in square boxes, then choose whether cropping or letterboxing is acceptable.
Step-by-step answer
<!doctype html>
<meta charset="utf-8">
<title>Cover versus contain</title>
<style>
img { width:200px; height:200px; background:#eee; border:1px solid; }
</style>
<p>Cover (cropped):</p>
<img alt="Wide image with marked ends" style="object-fit:cover"
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Crect width='400' height='200' fill='steelblue'/%3E%3Ccircle cx='20' cy='100' r='20' fill='gold'/%3E%3Ccircle cx='380' cy='100' r='20' fill='gold'/%3E%3C/svg%3E">
<p>Contain (complete):</p>
<img alt="Wide image with marked ends" style="object-fit:contain"
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Crect width='400' height='200' fill='steelblue'/%3E%3Ccircle cx='20' cy='100' r='20' fill='gold'/%3E%3Ccircle cx='380' cy='100' r='20' fill='gold'/%3E%3C/svg%3E">Sources and verification
Sources checked:
This editorial answer was prepared by KitForma with AI assistance. It is not presented as a real member question or an independent user review. Check the sources and the result with your own file; report corrections in the discussion.