Skip to content

Commit

Permalink
specify compression quality in branding
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Mart committed Nov 13, 2024
1 parent 601286a commit 6e26bb7
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 7 deletions.
37 changes: 37 additions & 0 deletions services/user/Branding/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions services/user/Branding/plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ impl Api for BrandingPlugin {
add_action_to_transaction("setNetworkName", &packed_network_name_args).unwrap();
}
fn set_logo(logo: Vec<u8>) {
upload(&File {
path: String::from("/network_logo.svg"),
content_type: String::from("image/svg+xml"),
content: logo,
})
upload(
&File {
path: String::from("/network_logo.svg"),
content_type: String::from("image/svg+xml"),
content: logo,
},
11,
)
.expect("Failed to upload logo");
}
}
Expand Down
65 changes: 63 additions & 2 deletions services/user/Brotli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e26bb7

Please sign in to comment.