1 unstable release
1.0.1 |
|
---|---|
0.1.2 | Dec 11, 2024 |
#826 in Images
158 downloads per month
215KB
432 lines
qrwatermark
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