Menu

Crop one headshot for both a square profile and a circular avatar
📰

Crop one headshot for both a square profile and a circular avatar

DEV Community: html·Louis·3 days ago
#OOqMTT5p
#devto2#devto#dev#eee#message
Long article (962 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.