The most powerful and easy-to-use Node.js library for adding professional watermarks. Trusted by 10,000+ developers worldwide.
Install the package and start adding professional watermarks to your images with just a few lines of code. No complex setup required.
Add to your project with npm
Import watermarking functions
Start watermarking images
1# Install via npm
2npm install images-watermark
3
4# Install via yarn
5yarn add images-watermark
6
7# Install via pnpm
8pnpm add images-watermark
1const { singleImageWatermark } = require('images-watermark');
2const path = require('path');
3
4// Add professional text watermark
5const watermarkedImage = await singleImageWatermark({
6 imagePath: path.join(__dirname, './input.jpg'),
7 allowedReferrers: ['http://localhost:3000'],
8 headers: {
9 host: 'localhost:3000',
10 connection: 'keep-alive',
11 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
12 },
13 textWatermark: '© 2025 Images Watermark',
14 textColor: '#ffffff',
15 opacity: '0.8',
16 fontWeight: '600'
17});
18
19// Add stunning image watermark
20const watermarkedImage = await singleImageWatermark({
21 imagePath: path.join(__dirname, './input.jpg'),
22 watermarkPath: path.join(__dirname, './logo.png'),
23 allowedReferrers: ['http://localhost:3000'],
24 headers: {
25 host: 'localhost:3000',
26 connection: 'keep-alive',
27 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
28 }
29});
Built with modern Node.js best practices, providing everything you need for professional image watermarking with exceptional performance.
Optimized for speed with minimal memory usage. Process thousands of images efficiently.
Extensive styling options including fonts, colors, opacity, positioning, and effects.
Full TypeScript support, comprehensive error handling, and enterprise reliability.
Clean, intuitive API design that makes watermarking straightforward and enjoyable.
From photography studios to enterprise platforms, Images Watermark adapts to your needs with powerful features and flexible customization.
Protect your work with professional watermarks
Brand your product images automatically
Add signatures to your digital artwork
Secure document marking and compliance
Join thousands of developers who trust Images Watermark for their image processing needs. Get started in minutes with our comprehensive documentation.
Free forever • MIT Licensed • No vendor lock-in • 1M+ downloads
Optimized with Sharp for lightning-fast processing
Minimal memory footprint for large-scale operations
Handle thousands of images with ease
Install using npm: npm install images-watermark
, yarn: yarn add images-watermark
, or pnpm: pnpm add images-watermark
Images Watermark supports PNG, JPEG, WebP, and other formats supported by the Sharp library. The library automatically detects and processes the appropriate format.
Yes! You can add both text and image watermarks simultaneously using the singleImageWatermark function. Simply provide both textWatermark and watermarkPath parameters.
Absolutely! Images Watermark is production-ready with comprehensive error handling, TypeScript support, high performance, and is trusted by thousands of developers worldwide.
Use the multiImageWatermark function to process multiple images at once. Simply provide an array of image paths and the same watermark settings will be applied to all images.
Images Watermark includes referrer-based access control for protected content. You can specify allowed domains to ensure only authorized requests can access your watermarked images.
Connect with thousands of developers using Images Watermark. Share experiences, get help, and contribute to the project.