Free plan

Sticker outline

Add a thick sticker-style outline around a cut-out picture
POST
/v1/images/sticker

About this tool

This tool draws a thick outline around the shape of a cut-out picture, like a die-cut sticker. You choose the outline width and colour, and can add a second outline, rounded corners and a soft shadow. A picture with a see-through background works best. If your picture has a plain background, the tool cuts it away first.
For example, you turn a cut-out photo of your pet into a sticker with a white outline.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Choose the outline width and colour.
  4. Optionally add a second outline, a shadow or rounded corners.
  5. Press Generate, then download the sticker.

What you get back

You get a new picture of your subject with the outline around it, usually with a see-through background. Download it to use.
GOOD TO KNOW
The background cut finds only a plain background connected to the picture edge; for photographs use the background-removal tool first. Counts as one image per picture.
TEST IT LIVE

Try Sticker outline 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/sticker
Tool ID
images.sticker
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/sticker" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'width=14' \
  -F 'color=#1a73e8' \
  -F 'outer_width=0'

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.sticker({
    "images": 'photo.jpg',
    "width": 14,
    "color": "#1a73e8",
    "outer_width": 0
  });
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()->sticker([
    'images' => 'photo.jpg',
    'width' => 14,
    'color' => '#1a73e8',
    'outer_width' => 0,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Give a cut-out picture the thick outline of a die-cut sticker (and an optional second outline and shadow), following its exact shape; a picture without transparency gets its plain background cut away first.

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

Sticker outline is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/sticker 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.