Canvas ArcTo Path Clipping & Smooth Anti-Aliased Alpha Edges
How sub-pixel path clipping generates smooth rounded edges without jagged pixel stair-steps.
Primary Browser Tool
Rounded Corners Tool
Round image corners to custom pixel radii or crop photos into crisp circular avatars with transparent PNG/WebP output.
Why Canvas `arcTo` Looks Smoother Than Binary Masks
RapidPNG builds a closed geometric path around the canvas using `ctx.arcTo` corners clamped to `min(width, height) / 2`, applies `ctx.clip()`, and draws the bitmap over a clean transparent buffer. The rasterizer computes partial alpha values (0–255) along the curve boundary for crisp anti-aliased edges.
Practical Examples
Email Newsletter Rounded Cards
Because many email clients strip CSS `border-radius`, baking smooth PNG/JPEG rounded corners into the image guarantees identical appearance everywhere.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Exporting tiny 64px rounded avatars at 1× instead of sizing at 2× (128px+) for Retina sharpness.
Technical Limitations
- Uses standard circular corner arcs rather than squircle/superellipse curves.