Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2008, 10:58 PM
amagab amagab is offline
 
Join Date: May 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 10-08-2008, 12:32 AM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amagab View Post
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.
The avatar size if very often defined in templates.

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"
Reply With Quote
  #3  
Old 10-08-2008, 02:18 AM
C2Systems C2Systems is offline
 
Join Date: Feb 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 10-08-2008, 02:38 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
You can probably either change that or modify the template to make it a link to the full-sized version.
Reply With Quote
  #5  
Old 10-08-2008, 02:55 AM
amagab amagab is offline
 
Join Date: May 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was probably not clear in my first post. I only want to resize avatars in the post view.
Reply With Quote
  #6  
Old 10-08-2008, 03:05 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-08-2008, 03:16 AM
amagab amagab is offline
 
Join Date: May 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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..
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?
Reply With Quote
  #8  
Old 10-08-2008, 03:22 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-08-2008, 03:55 AM
amagab amagab is offline
 
Join Date: May 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I think I'll try to resize a couple of them first before batching. Guess I start with my own. :-)
Reply With Quote
  #10  
Old 12-03-2008, 06:57 PM
TerryMason TerryMason is offline
 
Join Date: Oct 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05026 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete