Skip to content

retzion/nodejs-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: [email protected]: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

About

Simple solution for watermarking images using other overlying images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published