Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Eve Community  Hop To Forums  Customization Ideas    Eve Avatar Manager
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Groupee
Posted
Eve 1.2 changed the avatar scaling code and caused some quirky behavior. As a side effect, admins started to notice that some users had very large avatars.

This script will "walk" your /evefiles/avatars directories and find all the custom (uploaded) avatars and determine which ones are oversized (both in dimensions and filesize). You can select which ones you want to re-size.

Re-sized avatars go in a /avatartemp directory, from which you can update the users profile, uploading the new avatar.

Install Instructions are in the zip, let me know if you hit any bumps.

http://evedev.com/resources/scripts/avatars.zip
 
Posts: 3880 | Location: Seattle, WA | Registered: January 01, 2000Reply With QuoteEdit or Delete MessageReport This Post
Groupee Member
Picture of JeremyV
Posted Hide Post
So if I understand correctly, this will update and resize the images, but after doing so, you would then have to go into a user's profile and link their avatar to the new resized image?
 
Posts: 371 | Location: Lansing, MI | Registered: February 12, 2002Reply With QuoteEdit or Delete MessageReport This Post

Posted Hide Post
Hi Jeremy,

The script will resize the avatars to the /avatartemp location. You will have to then go into the user's profile and re-upload the new, resized avatar from the avatartemp directory. The alternative would be to copy the file from the avatartemp directory directly to the user's avatar directory based on the path shown in the script output.

Hope that helps.


Regards,

Brian Lenz
Groupee Inc.
 
Posts: 2176 | Location: Seattle, WA | Registered: June 15, 2000Reply With QuoteEdit or Delete MessageReport This Post
Groupee VIP
Posted Hide Post
quote:
you would then have to go into a user's profile and link their avatar to the new resized image?
In fact you want to upload the /avatartemp version to the user's profile.

Because of file permissions, the script can't overwrite the old image. You as admin have to update it through the UI.

PS -- I would use this script as a tool and delete it and the /avatartemp directory after use. There's no point leaving things around for snoopy people.


Infopop Corporation
 
Posts: 3604 | Registered: February 23, 2000Reply With QuoteEdit or Delete MessageReport This Post
Groupee
Posted Hide Post
Jeremy,

We ran into two problems that made it necessary for admins to manually update a users profile in order to change their avatar.

The first was the permissions, the second was that ImageMagick can't resize animated gifs. Doing so causes them to lose animation and become slightly distorted. Thus, it is better that the avatars are saved to a temporary location so you can review them.
 
Posts: 3880 | Location: Seattle, WA | Registered: January 01, 2000Reply With QuoteEdit or Delete MessageReport This Post
Groupee Member
Picture of JeremyV
Posted Hide Post
Excellent, just making sure I understood how it worked before doing it. I'll have to give it a try later today. Thanks!
 
Posts: 371 | Location: Lansing, MI | Registered: February 12, 2002Reply With QuoteEdit or Delete MessageReport This Post
Groupee
Posted Hide Post
My pleasure. Feel free to provide any and all feedback/criticism here or at evedev.com. Smile
 
Posts: 3880 | Location: Seattle, WA | Registered: January 01, 2000Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Eve Community  Hop To Forums  Customization Ideas    Eve Avatar Manager