https://github.com/scriptex/node-jimp-watermark
Add watermark on images using NodeJS and Jimp
https://github.com/scriptex/node-jimp-watermark
jimp nodejs-image-manipulation watermark watermark-image
Last synced: 3 months ago
JSON representation
Add watermark on images using NodeJS and Jimp
- Host: GitHub
- URL: https://github.com/scriptex/node-jimp-watermark
- Owner: scriptex
- License: mit
- Created: 2021-03-31T13:16:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-08-22T07:50:42.000Z (5 months ago)
- Last Synced: 2025-08-22T09:44:00.977Z (5 months ago)
- Topics: jimp, nodejs-image-manipulation, watermark, watermark-image
- Language: JavaScript
- Homepage: https://atanas.info/portfolio/open-source/node-jimp-watermark
- Size: 485 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/scriptex/node-jimp-watermark/actions?query=workflow%3ABuild)
[](https://www.codacy.com/gh/scriptex/node-jimp-watermark/dashboard?utm_source=github.com&utm_medium=referral&utm_content=scriptex/node-jimp-watermark&utm_campaign=Badge_Grade)
[](https://codebeat.co/projects/github-com-scriptex-node-jimp-watermark-master)
[](https://www.codefactor.io/repository/github/scriptex/node-jimp-watermark)
[](https://deepscan.io/dashboard#view=project&tid=3574&pid=5257&bid=40799)
[](https://github.com/scriptex/node-jimp-watermark/)
# Node Jimp Watermark
> Add watermark to images using NodeJS and Jimp
## Visitor stats




## Code stats





## Usage
1. Clone [this repository](https://github.com/scriptex/node-jimp-watermark)
2. Copy `.env.example` to `.env`
3. Set values to all environmental variables in the `.env` file:
```sh
# Turns on/off console logging
WATERMARK_DEBUG=true
# Absolute path to the file which will be used as a watermark
WATERMARK_IMAGE=/Users/user/projects/icon.png
# Absolute path to the folder containing the images
WATERMARK_IMAGES=/Users/user/projects/images
# Spacing between the watermark and the image edges
# in percentage (from 0 to 100)
WATERMARK_SPACING=2
# Opacity of the watermark when placed over the image
WATERMARK_OPACITY=0.5
# Ratio in percentage (from 0 to 100) relative to
# the watermarked image which is used to resize
# the watermark if the watermark is larger
WATERMARK_RESIZE_RATIO=10
# The position of the watermark.
# Possible values are:
# N (north),
# NE (northeast),
# E (east),
# SE (southeast),
# S (south),
# SW (southwest),
# W (west),
# NW (northwest),
# C (center)
WATERMARK_POSITION=SE
# A pipe split words which shouldn't be found in the images file names
WATERMARK_IGNORE=logo|icon|banner|unsplash|placeholder
```
4. Run `yarn start`
5. Profit
## LICENSE
MIT
---
Connect with me:
---