By Relwick · Published
A cutout can look clean on white and show a pale fringe on a dark slide. The same file may be blending with a different background, or the source may already contain a coloured rim.
Inspect the edge before changing compression targets. File size does not tell you whether the boundary was prepared for its intended use.
Quick answer & key takeaways
An edge can contain partially transparent pixels or colours left from an earlier background, so it may look different against a new surface. Compare the original and prepared image on the intended background. Preserve transparency when needed, or flatten deliberately to the required background. If the unwanted rim is already part of the source pixels, compression alone will not reconstruct a clean edge.
- Transparent edges can include intermediate opacity values.
- Review against the destination background, not only a checkerboard.
- A baked-in fringe needs source correction rather than repeated compression.
Compare the same edge on useful backgrounds
Place the source in an appropriate editor or document view over a light surface, a dark surface, and the intended destination background. Look at the same hairline, curve, or logo boundary each time. Keep the display size consistent so scaling does not confuse the comparison.
The PNG specification describes alpha values between fully transparent and fully opaque. Such pixels participate in the appearance of a soft edge over its background. A different appearance across backgrounds is therefore not, by itself, proof that the file has changed.
Check whether the fringe starts in the source
| Comparison | What to investigate |
|---|---|
| Source and output show the same rim | The source edge or its earlier background treatment. |
| Only the prepared output shows a new rim | The conversion, background, or resizing step. |
| Appearance changes only with the destination surface | How the edge blends with that background. |
These comparisons narrow the problem rather than proving one cause for every halo. If a visible white outline is already encoded as opaque pixels, merely keeping transparency elsewhere will not remove that outline.
Choose the output background deliberately
In Image compressor, PNG output preserves transparency, while JPEG output uses a white background. Choose according to the destination’s needs. A JPEG prepared against white will not later become a transparent cutout when placed on a coloured page.
If you need a particular solid background other than the tool’s white JPEG treatment, prepare that composition in an appropriate editor before compression. Keep the transparent master so you can make a different version later without trying to reverse a flattened background.
Review the saved asset in its final placement
Download the prepared image and place that exact file into the intended document or page. Inspect the boundary at its normal use size and a closer view. Check fine projections and internal transparent spaces as well as the outside contour.
If the background is a checkerboard that remains visible everywhere, consult the real-transparency guide. A checkerboard baked into the image is a different issue from partially transparent edge pixels.
Frequently asked questions
Will a larger byte target automatically remove a halo?
No. Determine whether the fringe comes from the source, background treatment, or preparation step before changing size.
Does PNG guarantee every edge is clean?
No. PNG can retain transparency, but it can also faithfully retain an unwanted rim already present in the source.
Can I turn a white-background JPEG back into the original transparent edge?
Not by changing the extension or choosing PNG. Use the original transparent source when available.
Sources and further reading
- W3C: PNG alpha representation — Defines alpha as opacity information ranging from fully transparent to fully opaque, including intermediate values.
Summary
Review edge appearance in context. Preserve a clean transparent source or flatten deliberately, then verify the exact asset against the background where it will be used.