recode group- and user-avatar to 192x192 pixel

This commit is contained in:
B. Petersen
2019-12-15 21:17:05 +01:00
committed by holger krekel
parent 9fc556864e
commit a5f949c4e2
4 changed files with 44 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ impl Context {
match value {
Some(value) => {
let blob = BlobObject::new_from_path(&self, value)?;
blob.recode_to_avatar_size(self)?;
self.sql.set_raw_config(self, key, Some(blob.as_name()))
}
None => self.sql.set_raw_config(self, key, None),