Skip to content
Coverton Blog
In this article
Images

Trim transparent image margins and inspect faint edges

Trimming empty space outside transparent PNG or WEBP artwork can tighten the canvas around a logo. The visible-pixel threshold determines whether faint shadows contribute to the detected bounds of that artwork.

Open the toolHow to use this tool ↓
Trim transparent image margins
This illustration explains the tool's workflow. It is not the processed result of an uploaded file.

How to use this tool

  1. Choose files in PNG, WEBP format. Maximum files per batch: 100.
  2. Review Alpha threshold (%), Padding (px), Output quality (%), then start processing.
  3. Download the PNG result and check its content and quality.

Choose the right settings

Set the alpha threshold and enter the padding to retain in pixels. To keep weak shadows, compare a lower-threshold result with the edges of the source rather than choosing only by final size.

Supported input
  • PNG, WEBP
Output
  • PNG
Available settings
  • Alpha threshold (%)
  • Padding (px)
  • Output quality (%)

Before you start

Prepare a representative source

Start with a copy of the source and decide where the result will be used. A picture for later editing, an upload with fixed dimensions and a printed page have different requirements. Check the supported input and intended output in this guide; a new filename extension alone does not convert the file.

Where size, quality, background or crop controls are available, change one choice at a time on a representative image. Include small lettering and an important edge in your comparison. If the task extracts information rather than changing the picture, decide which source region and values you need to inspect.

Write down the recipient’s requirements and the choices used for a trial, including output type and any size or background setting that applies. If a detail is already blurred, cropped or absent in the original, changing an output setting will not supply the missing evidence. Compare an intermediate copy separately from the original: it may already contain changes from a previous step. This record helps you decide whether to correct the source, revise one choice or use a different supported operation.

Compare the result with its source

Open the downloaded output in the program that will actually use it. For image outputs, compare the same area at the same zoom, inspect all edges and read the saved dimensions and file size. For extracted text, measurements or color values, check sample entries directly against the visible source; a plausible-looking result can still be wrong.

If the output differs from the preview or cannot be created, check the input format, this tool’s limits and the selected settings before changing the source. Repeating compression or enlarging a small image cannot restore detail already lost. Keep the original so another trial starts from the same evidence.

Example input and output

transparent logo with margins → trimmed logo

Examples describe the workflow. Results depend on the source file and settings.

Check the saved result before using it

Inspect the saved PNG's outline and all four boundaries. Compare faint shadows and thin strokes for clipping, and review the new canvas dimensions before placing the artwork in a layout.

If the result is different from what you expected

No visible region is found if every pixel falls below the chosen threshold. This tool does not remove an opaque white background, so confirm that the source actually contains transparency.

Limits to keep in mind

  • A white background is opaque and will not be removed. Higher thresholds can cut off faint edge pixels.

Continue with a related tool

Convert JPG to PNG

A PNG copy gives you a file for subsequent editing without adding another round of JPEG compression during this conversion. It stores the pixels decoded from the JPG, including any compression damage already present in the source photo.

Leave both maximum dimensions at 0 to keep the source dimensions. Enter a width or height limit when you need a smaller copy, and the image keeps its aspect ratio within those limits.

Open the tool

Convert PNG to JPG

When a destination accepts JPG only, decide what color should replace the PNG's transparent areas before converting. For graphics containing both photos and text, judge the saved file by its lettering as well as its size.

Choose a background color and JPEG quality, then set maximum dimensions if the destination needs a smaller image. Keep the original PNG alongside the JPG copy when you may need its transparency for future editing.

Open the tool
CovertonTrim transparent image margins
Open the tool

This guide explains the public browser tool. Keep a copy of the original and inspect the result before sharing it.