Mask an image into a circular avatar or thumbnail.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A circular clipping path is created around the chosen center and radius, the source image is fitted into the circle, and pixels outside the path are made transparent or filled with a background. The exported dimensions are normally a square containing the circle.
data:image/png;base64,iVBORw0KGgo... (image data URL)
Square PNG with transparent pixels outside the circular crop
Profile avatars, contact sheets, and masked UI image previews use circular crops.