Profile picture maker


About this tool
How to use it
- Choose this tool.
- Add your photo with Upload or drag and drop it in.
- Choose the shape and size, then use the zoom and position options to centre your face.
- Optionally add a ring, a backdrop colour or a shadow.
- Press Generate, then download the picture.
What you get back
Try Profile picture maker in the Studio
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;