#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

#831 in Images

Download history 132/week @ 2024-10-31 2/week @ 2024-11-07 2/week @ 2024-11-14 1/week @ 2024-11-21 89/week @ 2024-12-05 66/week @ 2024-12-12

154 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
~202K SLoC