lambda-watermark

0.0.3 • Public • Published

lambda-watermark

Build Status Coverage Status dependencies Codacy Badge

Watermarking for images in AWS S3 using AWS Lambda.

This module places a watermark in the bottom right corner of your image. An S3 Lambda event can be used to watermark every image that is uploaded to S3.

How to use

  • npm install lambda-watermark
  • Create your function (index.js)
'use strict';
var LambdaWatermark = require('lambda-watermark');
 
var options = {
  watermarkImagePath: './exampleWatermark.png',
  relativeSize: 5,
  opacity: 50
};
 
exports.handler = function(event, context) {
  new LambdaWatermark(options)(event, context);
};

Configuration (options)

  • watermarkImagePath: The relative path to your image
  • relativeSize: The size of the watermark (percent relative to the parent image)
  • opacity: How opaque the watermark should be. (100 is fully opaque, 0 is fully transparent)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1

Package Sidebar

Install

npm i lambda-watermark

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • prestonvanloon