The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Re-sizing avatars
I have up until now allowed for avatars to be 80x80. However, with a change in the style I now have changed the allowed size to 50x50. For obvious reasons the already uploaded avatars still stay 80x80.
Does anyone know of a way or of a program that can resize a folder of avatars. I was thinking of downloading the avatar folder, resize and then upload again. Does anyone know of a program that can batch that process? Thanks! |
#2
|
|||
|
|||
Quote:
Where they appears still in 80x80 on your site? search in all templates for [avheight] and replace the entire $variable with height="50" .... [avwidth] and replace the entire $variable with width="50" |
#3
|
|||
|
|||
on the subject of avatars ... I know if you click on it that takes you to that users profile .. is there a way to have a full sized version of the avatar associated instead? I was just thinking of an older forum I was on that you could *right click* "view image" and see the full scale image that the user uploaded
|
#4
|
||||
|
||||
The size of the avatar on the members.php page is defined at the top of includes/class_core.php
HTML Code:
define('FIXED_SIZE_AVATAR_WIDTH', 60); define('FIXED_SIZE_AVATAR_HEIGHT', 80); |
#5
|
|||
|
|||
I was probably not clear in my first post. I only want to resize avatars in the post view.
|
#6
|
||||
|
||||
Sorry, I was responding to the post above mine.
I know photoshop can easily resize all those avatars if you have photoshop. However, I don't know that you can simply replace the images that way on the server and have them work. You could just either ask all your users to reupload an avatar that complies with the new size limit, or try to modify display size as nerofix suggested. |
#7
|
|||
|
|||
Now if that works I will do that. Does Photoshop do batch processing of an entire folder? I guess the other question if the current avatars will be replaced when I overwrite them with smaller avatars?
|
#8
|
||||
|
||||
I don't know that photoshop does it by default, but I wrote something to do batch resizing for a folder a while ago for some banners we had on the site. It may be a built in function now, I don't know. You basically just record what you do and then do that to the whole folder. If your batch process is made to save the file with the same name, then there is no reason you can't just upload them to overwrite the existing ones.
I would NOT do this on a live site. I would practice it on a text site. Also, when testing, make sure you clear your browser cache or you may *think* all is OK when it actually isn't. |
#9
|
|||
|
|||
Thanks, I think I'll try to resize a couple of them first before batching. Guess I start with my own. :-)
|
#10
|
|||
|
|||
Horrible website, but great, simple batch image resizer:
http://www.xat.com/io/ I also use this program all the time to turn 3 mb files into nice websafe 90kb ones. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|