Print Page | Close Window

Avatar size too small

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15529
Printed Date: 13 April 2026 at 8:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Avatar size too small
Posted By: FatScape
Subject: Avatar size too small
Date Posted: 21 June 2005 at 1:34am
When I link to website avatars, the avatr size decreases drastically in size. How do I change the policies of Avatar sizes? Thanks.



Replies:
Posted By: dpyers
Date Posted: 21 June 2005 at 10:11am
Do a search. Resizing avatars has been covered several times. One problem with allowing variable sized avatars is that they tend to throw off the forum formatting/sizing.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: FatScape
Date Posted: 21 June 2005 at 5:03pm
It's different than what you think. The proportionality of each picture changes as well. I linked to a picture of 107 x 83 and it changed into a 64 x 64. I'm not ok with it changing the proportionality. I'd like that ratio to stay the same. Is there a way to do this for ALL avatars for ALL members? I didn't find this on a search.


Posted By: dpyers
Date Posted: 21 June 2005 at 7:54pm
First hit on a search for avatar resize returns this thread.
http://forums.webwiz.net/forum_posts.asp?TID=14871&KW=avatar+resize - http://forums.webwiz.net/forum_posts.asp?TID=14871&KW=avatar+resize
Last post tells how to resize proportionally

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: FatScape
Date Posted: 22 June 2005 at 3:59am
<script language="javascript" type="text/javascript">
<!--
function resizeAvatar(avatar) {
     // width & height can be different e.g. 150/100
     var width = 150;
     var height = 150;
     var rw = avatar.width/width;
     var rh = avatar.height/height;

     if (rw > 1 || rh > 1) {
          var ratio = avatar.width/avatar.height;

          if(rw > rh) {
               avatar.sty le.width = width;
               avatar.sty le.height = width / ratio;
          }
          else if(rw < rh) {
               avatar.sty le.height = height;
               avatar.sty le.width = height * ratio;
          }
          else {
               avatar.sty le.width = width;
               avatar.sty le.height = height;
          }
     }
     else {
          avatar.style.width = avatar.width;
          avatar.style.height = avatar.height;
     }
}
//-->
</script>
 
 
I found the code, but it doesn't say what page to put it on...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net