By Louis
A square crop can look fine in an editor and lose the corner of your glasses in the chat sidebar. The file hasn't changed. The sidebar hides every pixel outside an inscribed circle. Here's how to make one usable square JPEG, then proof it at two sizes on your own computer.
Make the square by hand
- Open a portrait you have permission to use in GIMP. Work on a copy. Pick a frame with a little space above the hair and around both shoulders. If you wear glasses, choose a frame where you can see both eyes through the lenses.
- Select the Crop tool. In Tool Options, check Fixed, choose Aspect ratio, and enter 1:1. Drag a square around the face and shoulders. As a starting point, put the midpoint between the eyes about two-fifths of the way down the square. Leave room to move the crop sideways if the head is turned. Press Enter.
- Choose Select → None to clear any previous selection. Choose the Ellipse Select tool. In its Tool Options, turn off Fixed if it is set. Drag from the upper-left to the lower-right corner of the canvas. The oval touching all four sides is the boundary your avatar will have. Zoom out until you can see the whole circle. Check the hair, ears, glasses and jaw against that boundary. Shoulder corners may disappear without affecting recognition.
- If the circle cuts a detail you want to keep, clear the selection and undo back to the uncropped portrait. Draw a larger square. If the original has no room on one side, try a different frame. Shrinking the exported JPEG later won't put the missing pixels back.
- Clear the ellipse selection. Choose Image → Scale Image. With the dimensions linked, enter 512 pixels for width and confirm the height is also 512. Start from a crop at least that wide when possible. Export as
headshot.jpgat quality 90. In the JPEG export dialog, turn off EXIF, XMP and IPTC if GIMP offers them. Keep the full-resolution original separately.
Proof the exact exported file
You can stop after the manual crop. To see what the exported pixels look like on a dark and light interface, save this as proof.html and open it in a browser. Choose the JPEG you just exported. The browser decodes the local file and draws it four times. The CSS circle only changes its presentation.
<!doctype html> <html lang="en"> <meta charset="utf-8"> <title>Avatar crop proof</title> <style> body { font: 16px system-ui; margin: 2rem; } section { display: flex; gap: 24px; align-items: center; padding: 16px; } .light { background: #eee; color: #222; } .dark { background: #282828; color: white; } img { display: block; border-radius: 50%; } </style> <label>Choose your square JPEG <input type="file" accept="image/jpeg"></label> <p id="message" role="status"></p> <main></main> <script> const input = document.querySelector('input'); const output = document.querySelector('main'); const message = document.querySelector('#message'); input.onchange = async () => { output.replaceChildren(); message.textContent = ''; const file = input.files[0]; if (!file) return; const url = URL.createObjectURL(file); try { const source = new Image(); source.src = url; await source.decode(); if (file !== input.files[0]) return; if (source.naturalWidth !== source.naturalHeight) { message.textContent = 'Export a square crop and try again.'; return; } for (const theme of ['light', 'dark']) { const row = document.createElement('section'); row.className = theme; row.append(theme + ' background'); for (const size of [96, 32]) { const preview = source.cloneNode(); preview.width = preview.height = size; preview.alt = size + ' pixel avatar'; row.append(preview); } output.append(row); } await Promise.all([...output.querySelectorAll('img')].map(img => img.decode())); } catch { if (file === input.files[0]) message.textContent = 'Could not read that JPEG.'; } finally { URL.revokeObjectURL(url); } }; </script> </html> At 96 pixels, look for a clipped frame or an ear touching the boundary. At 32 pixels, look away, then glance back. Can you still recognize the face? If the larger proof looks good but the smaller one is mostly shirt and background, move the square in a little and check both sizes again. Keep the JPEG square when you upload it so a service that uses square thumbnails also gets the full image.
I develop Facelira, which generates sets of four 896 × 1200 JPEG business headshots, dating photos, and portraits from a single selfie in about 60 seconds (one-time packs start at $7.99 for 16 photos, with no subscription). For any generated portrait, compare the square crop beside your source photo before export—check the glasses, hairline, and jaw while both images are large enough to spot differences.
