0.1.7 • Published 3 years ago

nodejs-watermark v0.1.7

Weekly downloads
18
License
ISC
Repository
github
Last release
3 years ago

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

  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

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago