Free plan

Signature from a photo

Turn a photo of your signature into a see-through picture
POST
/v1/images/signature

About this tool

Take a photo of your signature written on plain white paper. This tool keeps only the ink and removes the paper, so you get a clean signature on a see-through background. You can choose the ink colour, how soft the edges are, how much empty space is left around it, and a width. It also cuts away the empty paper around the signature.
For example, you photograph your signature and then place the clean picture on documents you sign on your computer.

How to use it

  1. Choose this tool.
  2. Add the photo of your signature with Upload or drag and drop.
  3. Choose the ink colour and the background (see-through, white or a colour).
  4. Adjust the threshold if thin strokes are lost or paper marks remain.
  5. Press Generate, then download the picture.

What you get back

You get a new picture of only your signature, usually a PNG with a see-through background. Download it to use on other documents.
GOOD TO KNOW
Works on the real pixels. Photograph with the paper flat and a dark pen. One picture counts as one image.
TEST IT LIVE

Try Signature from a photo 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/signature
Tool ID
images.signature
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/signature" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'threshold=1' \
  -F 'color=#0b2a6f' \
  -F 'mode=soft'

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.signature({
    "images": 'photo.jpg',
    "threshold": 1,
    "color": "#0b2a6f",
    "mode": "soft"
  });
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()->signature([
    'images' => 'photo.jpg',
    'threshold' => 1,
    'color' => '#0b2a6f',
    'mode' => 'soft',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Turn a photo of a signature on paper into a clean picture of just the ink, on a transparent (or white) background, in the colour you choose, trimmed and sized.

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

Signature from a photo is included in every plan, including Free. Each run uses credits from your monthly allowance.

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