export-dimensions / BACKGROUND REMOVAL

Size a Transparent Cutout for High-Density Screens

Calculate the raster width for a display slot without confusing CSS size and source pixels.

Open the free Background Remover ↗

The real before and after

298 × 625 px
Original licensed photograph: two silver utensils standing side by side, a fork and a knife
Before
Actual Pexure background removal result: two silver utensils standing side by side, a fork and a knife
After · transparent PNG

Compare the original and actual cutout. The grid indicates transparency. Display previews may be resized; view the full-resolution recorded PNG.

Sample: Fork · The Metropolitan Museum of Art · CC0. Processing: Pexure Studio, Automatic subject. No endorsement implied.

Measure the width of the displayed image in layout pixels, then multiply it by the device-pixel ratio you want to support. A 400 CSS pixel image at 2× calls for an 800 px copy. Size a transparent derivative in another editor and check how much of that width the foreground occupies.

Read the actual slot in your layout

In your design or page preview, confirm the width where the cutout will appear. Responsive sections may have several widths, so note the widest placement you need to supply at the requested density. If the image tag fills its own frame but the file has generous clear margins, the object inside the slot will look narrower than the slot itself.

Translate layout size into source samples

A device-pixel ratio of 2 means each CSS pixel spans approximately two physical pixels on each axis in the straightforward case. For example, a 400 × 300 CSS pixel asset can use an 800 × 600 source to cover that density. At 1×, a 400 × 300 copy may suffice. Prepare fixed-size derivatives from the largest clean cutout available.

Check the visible foreground separately

If the subject should read as 400 CSS pixels wide and its silhouette spans only half the image canvas, adjust the placement or crop a separate derivative so the actual subject meets the size. Start with a source that contains enough real silhouette detail at 2×. An enlarged thumbnail can meet the numerical width while retaining softness.

Choose a web delivery size that fits the job

Keep the full PNG as a reference and export the required sizes in an alpha-capable format. Verify a smaller file at normal display size on the page and inspect fine shapes on a high-density view if available. If your page offers responsive image sizes, give it both derivatives instead of using the larger one for every slot.

Keep the same crop across density variants

Make the 1× and 2× copies from the same working canvas so the subject does not jump when the browser selects a larger image. Keep corresponding margins proportional. For example, use a 30 px clear margin on an 800 px derivative when the 400 px derivative has 15 px around the same part.

About this demonstration

The reused automatic fork-and-knife result keeps two narrow foreground shapes within a larger PNG. The space around the pair is separate from the foreground pixels available at a high-density display size.

The space outside the two utensils illustrates why a display slot and its actual foreground can occupy different widths.

The displayed result was produced from the linked licensed source using Pexure’s existing free engine. This is an illustrative example, not a promise that every image will produce the same result.