Forum Discussion
Hi luk
Thank you for your response. I have checked the option, and not sure the following code can update based on your suggestion.
<#assign avatar_info = restadmin("/users/id/"+login_user_id+ "/profiles/avatar").image /> <img class="lia-user-rank-icon-left" title="${login_user_info.user.login}" alt="${login_user_info.user.login}" src="${avatar_info.url}" height="63" width="63" />
jaikumar1 what is the output of
${avatar_info.url}
would be easier to tell based on that, but I also see you're setting
height="63" width="63"
attributes, which of course have nothing to do with the original avatar size but force these dimensions onto the image. If the avatars are square you shouldn't have much problems, but if they are not, you gonna have squished images (e.g. not resized proportially). Based off these dimensions I would go for the /profile size (see link above), but I do not know the exact dimensions this sizes the avatars, my guess would be the long side is resized to 128px, so that should be enough, the /message size looks like long side = 50px, so that would be a bit too small...
Related Content
- 12 years ago