diff --git a/phpBB/assets/javascript/phpbb-avatars.js b/phpBB/assets/javascript/phpbb-avatars.js index 6480ffd2ea..c380f2ef99 100644 --- a/phpBB/assets/javascript/phpbb-avatars.js +++ b/phpBB/assets/javascript/phpbb-avatars.js @@ -47,6 +47,8 @@ // Ensure we have an img for the cropping if (this.$box.children('img').length === 0) { const $avatarImg = $(''); + $avatarImg.setAttribute('width', phpbb.avatars.$data.data().maxWidth); + $avatarImg.setAttribute('height', phpbb.avatars.$data.data().maxHeight); $avatarImg.addClass('avatar'); this.image = $avatarImg; this.$box.prepend($avatarImg);