#qrcode #watermark

qrwatermark

A tool to generate QR codes with watermarks

1 unstable release

1.0.1 Oct 31, 2024
0.1.2 Dec 11, 2024

#826 in Images

Download history 129/week @ 2024-10-28 5/week @ 2024-11-04 3/week @ 2024-11-18 155/week @ 2024-12-09

158 downloads per month

MIT license

215KB
432 lines

qrwatermark

QR Code

Overview

The qrwatermark project aims to generate fancy QR codes with a watermarks, written in the Rust language

Examples

// Custom image config
let image_config = ImageConfigBuilder::new()
    .color_gradient(([206, 66, 43], [23, 23, 23])) // Custom gradient colors
    .color([112, 81, 24])
    // .is_auto_gradient_enabled() // Auto gradient
    .build();

// Custom logo config
let logo_config =  LogoConfigBuilder::new()
    .width(70)
    .height(70)
    .build();

let mut qrw = QrWatermark::new("QrWatermark example")
    .logo("imgs/rust_logo.png")
    .logo_config(logo_config)
    .image_config(image_config);

qrw.save_as_image("./imgs/example2.png").expect("Unable to save image");

Dependencies

~10MB
~201K SLoC