[jitsi-users] Changing the default avatar, but keep the gravatars function


#1

We want to change the default avatar but still keep the use of gravatars, when available.
To manage this we need to patch the app.bundle.js file. We have not found any other ways to do this.

We tried to use the /usr/share/jitsi-meet/libs/app.bundle.js directly (after renaming to .min.js) but could not get this to work.

We tried to minify with the online tool http://javascript-minifier.com <http://javascript-minifier.com/> but it give payload to large.

We managed to minify with http://dean.edwards.name/packer/ but the resulted file did not work.

Any suggestions?

Regards,
John


#2

Hi,

You can change RANDOM_AVATAR_URL_PREFIX and RANDOM_AVATAR_URL_SUFFIX
to point to your avatar/avatar service, there will be a dynamic part
in the URLS unique for every browser.
https://github.com/jitsi/jitsi-meet/blob/master/interface_config.js#L60
Using those, gravatar will still be working for accounts using email
in the settings.

To change the code, you need to install nodejs, check the code, do npm
install && make after adding your modifications. All other approaches
are some kind of hacks and not guaranteed to work.
Hope this helps

Regards
damencho

ยทยทยท

On Tue, Apr 11, 2017 at 4:22 AM, jr@johnroland.eu <jr@johnroland.eu> wrote:

We want to change the default avatar but still keep the use of gravatars,
when available.
To manage this we need to patch the app.bundle.js file. We have not found
any other ways to do this.

We tried to use the /usr/share/jitsi-meet/libs/app.bundle.js directly (after
renaming to .min.js) but could not get this to work.

We tried to minify with the online tool http://javascript-minifier.com but
it give payload to large.

We managed to minify with http://dean.edwards.name/packer/ but the resulted
file did not work.

Any suggestions?

Regards,
John

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users