Why does a circular crop need to be saved as a PNG?
JPG files lack an alpha channel, so any pixels outside a round mask are forced to turn solid white or black. Saving Circle and Rounded square crops as 32-bit PNG keeps the four corners completely transparent (alpha = 0), allowing your avatar to sit cleanly over dark mode headers, colored cards, and chat threads.
Under the W3C Portable Network Graphics (PNG) Specification Third Edition, PNG stores an independent 8-bit alpha channel alongside 8-bit red, green, and blue pixel data. If your photo has a busy room behind the subject, you can isolate your portrait subject from a busy background before framing it into a circle.
How alpha transparency prevents white corners in dark mode
Many social networks and team chat apps apply their own circular CSS mask on top of uploaded avatars, yet email signatures, slide decks, and custom web pages often render the raw image file directly. Exporting a transparent PNG guarantees smooth anti-aliased edges on every background color without ugly white corner boxes.
When Square mode keeps your original JPG or WebP format
When you switch Shape to Square, there are no cut-out corners that require transparency. In Square mode, the exporter keeps your source file’s format (JPG, WebP, or PNG) via sameFormat() and appends -cropped to the filename.
By contrast, Circle appends -circle.png and Rounded square appends -cropped.png so you can tell transparent avatar exports apart from original photos in your downloads folder. Both modes keep edges crisp at 32-bit RGBA depth.
Choosing Circle, Rounded square, or Square output shapes
Pick Circle for standard social profile avatars, Rounded square for app-icon-style badges with an 18% corner radius, and Square for uniform 1:1 thumbnails without transparent corners. Each shape updates the stage overlay live so the exported file matches what you frame.
| Shape option | Clipping geometry | Output format | Transparent corners | Best use case |
|---|---|---|---|---|
| Circle | Full ctx.arc() circle |
32-bit RGBA PNG (-circle.png) |
Yes (alpha = 0) |
LinkedIn, Slack, Teams, and Gmail avatars |
| Rounded square | 18% corner radius | 32-bit RGBA PNG (-cropped.png) |
Yes (alpha = 0) |
App icons, macOS badges, and UI cards |
| Square | Straight 1:1 box | Original format (-cropped) |
No (unless source PNG) | Storefront thumbnails and album covers |
| With outline | 3.5% inset stroke | Matches selected shape | Outside outline ring | High-contrast rings on dark or busy feeds |
As documented in the MDN CanvasRenderingContext2D.roundRect() Reference, Rounded square applies an exact 18% radius scaled to the output pixel size. If you are designing browser tab icons rather than portraits, use a multi-size favicon and app icon maker to generate .ico and .png icon sets.
Framing, zooming, and adding an outline border
Drag anywhere inside the preview stage to pan your photo beneath the mask, or scroll your mouse wheel to zoom in smoothly. For portrait photos (height > width), the cropper automatically shifts the starting center slightly upward (+8% of height bias) so heads start near the middle.
Using 1.0x to 8.0x zoom and keyboard pan controls
The Zoom slider spans 1.0× to 8.0× in 0.05 increments, letting you crop tightly around a face in a wide group shot. Keyboard users can focus the stage and press Arrow keys to pan by 3% of the crop side, or + and - to zoom.
Applying the 3.5% colored outline for light or dark feeds
Tick Add an outline and pick a color with the Outline colour swatch (default #ffffff) to draw an inset ring around your avatar. The stroke width scales to 3.5% of the output canvas (about 36 px on a 1024 × 1024 px export) and sits inside the clipped boundary.
According to the MDN CanvasRenderingContext2D.arc() Reference, the circular mask and border stroke share the exact same center and inset radius (actualOut / 2 - bw / 2) so no background pixels leak outside the ring. To frame rectangular graphics before exporting, switch to the dedicated border tool instead.
Picking 1024 px, 512 px, or As cropped avatar dimensions
The Size dropdown offers 1024 × 1024 (profile pictures) by default, 512 × 512 (small avatar) for lightweight forum uploads, and As cropped to export at the exact pixel dimensions of your zoomed selection. All outputs are clamped to browser 2D canvas limits of 4096 px maximum per side.
Why 1024 x 1024 works across LinkedIn, Slack, and Teams
High-DPI laptop and phone screens render 2× or 3× pixels inside CSS avatar boxes. Exporting at 1024 × 1024 px gives platforms plenty of clean detail to downscale without showing blurry compression blocks.
If you only need a compact thumbnail for a forum signature or lightweight chat bot, 512 × 512 (small avatar) cuts the PNG byte size by roughly three-quarters while staying sharp at standard 48 px to 128 px UI sizes.
Tip: Avoid choosing 1024 × 1024 when you zoom past 4× on a small source photo; check the pixel readout next to As cropped first so you do not upscale a tiny crop.
Local canvas export and EXIF metadata stripping
Every step from createImageBitmap() decoding to PNG encoding at 0.92 quality for non-transparent square JPGs runs locally inside your browser tab with zero uploads. Re-drawing the cropped region onto a new canvas strips original camera EXIF and GPS tags, and afterward you can combine team headshots into a single grid for an about page.