Socket
Book a DemoInstallSign in
Socket

qr-watermark-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qr-watermark-generator

A CLI tool to generate watermarked QR codes

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

QR Watermark Generator

A powerful command-line tool and Node.js library for generating watermarked QR codes with customizable positioning, transparency, and sizing options.

npm license downloads

Features

  • Generate QR codes from any text or URL
  • Add watermarks to your QR codes
  • Customize watermark position, transparency, and size
  • Use from command line or programmatically
  • No external dependencies (pure Node.js)
  • Supports multiple image formats (PNG, JPEG, BMP, TIFF, GIF)

Installation

npm install -g qr-watermark-generator

Quick Start

Generate a simple QR code:

qr-watermarker "https://example.com"

Generate a QR code with a watermark:

qr-watermarker "https://example.com" -w ./logo.png

CLI Usage

Basic Syntax

qr-watermarker <data> [options]

Examples

# 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

Programmatic Usage

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);

Options

OptionShorthandDefaultDescription
<data>-RequiredData to encode in QR code
--watermark <path>-wNonePath to watermark image
--position <position>-pcenterWatermark position
--transparency <number>-t128Watermark transparency (0-255)
--scale <number>-s25Watermark size % (5-30)
--output <path>-o./watermarked_qr.pngOutput file path
--qr-size <number>-q512QR code size in pixels

License

MIT

Keywords

qr-code

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.