Free plan

Profile picture maker

Turn a photo into a neat round or square profile picture
POST
/v1/images/profile-picture
Profile picture
Original
OriginalProfile picture

About this tool

This tool crops your photo into a profile picture. You choose the shape (circle, rounded square, hexagon and more), the size, and how much to zoom in and where to centre the crop. You can also add a coloured ring, a backdrop colour, a soft shadow, or make the picture black and white and a little brighter. It does not find faces for you, so move the centre yourself if needed.
For example, you crop a holiday photo into a round picture with a white ring to use as your account photo on a social network.

How to use it

  1. Choose this tool.
  2. Add your photo with Upload or drag and drop it in.
  3. Choose the shape and size, then use the zoom and position options to centre your face.
  4. Optionally add a ring, a backdrop colour or a shadow.
  5. Press Generate, then download the picture.

What you get back

You get a new picture file in the shape and size you chose, ready to download. A round shape has see-through corners, so it works best saved as a PNG.
GOOD TO KNOW
The crop is around the middle (or where you move it): no face is detected. The result is a transparent PNG unless the output format has no transparency. Counts as one image per picture.
TEST IT LIVE

Try Profile picture maker in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/profile-picture
Tool ID
images.profile-picture
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/profile-picture" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'shape=circle' \
  -F 'size=512' \
  -F 'corner_radius=22'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.profilePicture({
    "images": 'photo.jpg',
    "shape": "circle",
    "size": 512,
    "corner_radius": 22
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->profilePicture([
    'images' => 'photo.jpg',
    'shape' => 'circle',
    'size' => 512,
    'corner_radius' => 22,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Turn a photo into a profile picture: cropped around the face (you choose the centre and the zoom), cut into a circle, rounded square, squircle, hexagon or square, with a ring of one or two colours, a backdrop, a soft shadow and touch-ups (black and white, brightness, contrast, saturation).

Profile picture maker accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Profile picture maker is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/profile-picture with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.