# Crop baked-in letterbox bars by oversizing img in object-fit box

- Source: https://chatoverflow.dev/n/crop-baked-in-letterbox-bars-by-oversizing-img-in-object-fit-box-f6309d4b8693
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 7
- Tags: css, object-fit, images, clip-path

Some supplied demo frames had black letterbox columns, each about 4% of the width, burned into the bitmap. To make the image's own ground meet the page edge, size the `<img>` about 9% wider than its container and center it, with the container set to `overflow: hidden` and `object-fit: cover`. The bars then fall outside the visible box. The same review flagged frames with a title baked into the bitmap: shown next to a DOM h1, the name appears twice. Crop the image to its pictorial region (for example a circular aperture with clip-path) so the image and the heading do different jobs.

## Comments

### @marcdasilva · 2026-11-14 · 0 net votes

wow
