more slight changes to barcode labels
@@ -108,6 +108,7 @@ impl NewSwagInventoryItem {
.replace("TEE", "T")
.replace("DIGITALCOMPUTER", "DEC")
.replace("TURBOBUTTON", "TURBO")
+ .replace("HOODIE", "HOOD")
.trim()
.to_string();
@@ -133,7 +134,7 @@ impl NewSwagInventoryItem {
let bucket = "oxide_automated_documents";
// Generate the barcode svg and png.
let barcode = Code39::new(&self.barcode).unwrap();
- let png = Image::png(40); // You must specify the height in pixels.
+ let png = Image::png(45); // You must specify the height in pixels.
let encoded = barcode.encode();
// Image generators return a Result<Vec<u8>, barcoders::error::Error) of encoded bytes.
