
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
qr-watermark-generator
Advanced tools
A powerful command-line tool and Node.js library for generating watermarked QR codes with customizable positioning, transparency, and sizing options.
npm install -g qr-watermark-generator
qr-watermarker "https://example.com"
qr-watermarker "https://example.com" -w ./logo.png
qr-watermarker <data> [options]
# Simple QR code
qr-watermarker "Hello World"
# QR code with watermark
qr-watermarker "https://example.com" -w ./logo.png
# Customized QR code
qr-watermarker "https://example.com" \\
-w ./logo.png \\
-p bottom-right \\
-t 200 \\
-s 25 \\
-q 1024 \\
-o my-custom-qr.png
const { generateWatermarkedQR } = require('qr-watermark-generator');
const buffer = await generateWatermarkedQR({
data: 'https://example.com',
watermarkPath: './logo.png',
position: 'center',
transparency: 128,
scale: 25,
qrSize: 512
});
// Save to file
require('fs').writeFileSync('output.png', buffer);
Option | Shorthand | Default | Description |
---|---|---|---|
<data> | - | Required | Data to encode in QR code |
--watermark <path> | -w | None | Path to watermark image |
--position <position> | -p | center | Watermark position |
--transparency <number> | -t | 128 | Watermark transparency (0-255) |
--scale <number> | -s | 25 | Watermark size % (5-30) |
--output <path> | -o | ./watermarked_qr.png | Output file path |
--qr-size <number> | -q | 512 | QR code size in pixels |
MIT
FAQs
A CLI tool to generate watermarked QR codes
We found that qr-watermark-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.