From 123f61933611f326ea5a5e8c2ea253ee8720e4f0 Mon Sep 17 00:00:00 2001 From: Kimsible <1877318+kimsible@users.noreply.github.com> Date: Wed, 25 Nov 2020 09:26:31 +0100 Subject: Add pixel size to tooltip and gif support with FFmpeg for avatar upload (#3329) * Add avatar pixel size upload in tooltip * Add gif support for avatar * Add ffmpeg GIF process Co-authored-by: kimsible --- .../shared-main/account/actor-avatar-info.component.html | 3 ++- .../shared/shared-main/account/actor-avatar-info.component.ts | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-main/account/actor-avatar-info.component.html b/client/src/app/shared/shared-main/account/actor-avatar-info.component.html index d01b9ac7f..e63d8de2d 100644 --- a/client/src/app/shared/shared-main/account/actor-avatar-info.component.html +++ b/client/src/app/shared/shared-main/account/actor-avatar-info.component.html @@ -4,7 +4,8 @@ Avatar
-
+
diff --git a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts index 5daa54cb5..de78a390e 100644 --- a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts +++ b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts @@ -17,16 +17,12 @@ export class ActorAvatarInfoComponent implements OnInit { @Output() avatarChange = new EventEmitter() - maxSizeText: string - private serverConfig: ServerConfig constructor ( private serverService: ServerService, private notifier: Notifier - ) { - this.maxSizeText = $localize`max size` - } + ) { } ngOnInit (): void { this.serverConfig = this.serverService.getTmpConfig() @@ -58,4 +54,8 @@ export class ActorAvatarInfoComponent implements OnInit { get avatarExtensions () { return this.serverConfig.avatar.file.extensions.join(', ') } + + get avatarFormat () { + return `${$localize`max size`}: 192*192px, ${this.maxAvatarSizeInBytes} ${$localize`extensions`}: ${this.avatarExtensions}` + } } -- cgit v1.2.3