nodejs-watermark

0.1.7 • Public • Published

nodejs-watermark

npm version Issues Forks Stars License: GPL v2

See the demo (master branch of this repo deployed to Heroku)

Get the NPM package


Try it out on your local machine:
  1. Install GraphicsMagick on your machine (or a buildpack on your server)
  2. Clone this repo: git@github.com:retzion/nodejs-watermark.git
  3. Install dependencies: npm i
  4. Run it: npm run start:dev
  5. Try it out: http://localhost:3000/https%3A%2F%2Fpicsum.photos%2F1200%2F777
  6. Try adding some params: http://localhost:3000/u/https%3A%2F%2Fpicsum.photos%2F1200%2F777?resize=1200,660&geometry=660,540



Params:

Include geometry and resize as querystring parameters in order to customize the image.

  • resize: Tuple of X, Y dimensions for resizing the base image (?resize=800,450)

  • geometry: Tuple of X, Y coordinates for where to place the watermark (?geometry=30,30)




resources:

Heroku Buildpack: https://elements.heroku.com/buildpacks/xerpa/heroku-buildpack-graphicsmagick

Readme

Keywords

none

Package Sidebar

Install

npm i nodejs-watermark

Weekly Downloads

0

Version

0.1.7

License

ISC

Unpacked Size

26.7 kB

Total Files

4

Last publish

Collaborators

  • retzion