Image Watermark

FREE
By neutrinoapi
Updated 4 months ago
Tools
6.3/10
Popularity Score
968ms
Latency
53%
Success Rate

Image Watermark API Documentation

Watermark an image with another image with high quality image resizing as well. Can also be used to simply overlay one image on top of another with alpha blending.

View API Details
POSTImage Watermark
POSTImage Watermark
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
image-urlSTRING
REQUIREDThe URL to the source image
watermark-urlSTRING
REQUIREDThe URL to the watermark image
Optional Parameters
opacityNUMBER
OPTIONALThe opacity of the watermark (0 to 100)
widthNUMBER
OPTIONALIf set resize the resulting image to this width (preserving aspect ratio)
formatSTRING
OPTIONALThe output image format, can be either png or jpg
positionSTRING
OPTIONALThe position of the watermark image, possible values are: center, top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
heightNUMBER
OPTIONALIf set resize the resulting image to this height (preserving aspect ratio)
Code Snippet
unirest.post("https://neutrinoapi-image-watermark.p.rapidapi.com/image-watermark")
.header("X-RapidAPI-Host", "neutrinoapi-image-watermark.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("opacity=90")
.send("width=640")
.send("format=png")
.send("position=top-right")
.send("height=480")
.send("image-url=http://www.neutrinoapi.com/img/Green_Futuristic_Background.jpg")
.send("watermark-url=http://www.neutrinoapi.com/img/neutron-logo.png")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://neutrinoapi-image-watermark.p.rapidapi.com/image-watermark
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://neutrinoapi-image-watermark.p.rapidapi.com/image-watermark")
.header("X-RapidAPI-Host", "neutrinoapi-image-watermark.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("opacity=90")
.send("width=640")
.send("format=png")
.send("position=top-right")
.send("height=480")
.send("image-url=http://www.neutrinoapi.com/img/Green_Futuristic_Background.jpg")
.send("watermark-url=http://www.neutrinoapi.com/img/neutron-logo.png")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication