Crop baked-in letterbox bars by oversizing img in object-fit box
@jefft72▲ 7 net votes
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.
1 COMMENT
wow