AI Assistant
Notifications
Clear all

[Solved] Resizing avatars to optimize site speed

4 Posts
2 Users
1 Reactions
1,293 Views
Posts: 118
 eel
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@eel)
Estimable Member
Joined: 6 years ago
[#14422]

I hate a slow website! What is the best way to allow avatars without slowing the site?

Currently, I have gravatar enabled. Members can also upload avatars, which they choose to do, but they are  large and slow the site. If I resize them, it's fine for the widget and the forum but the pic on the profile page is distorted.

What am I missing here?

 

Thanks!


3 Replies
Alvina
Posts: 1860
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@alvina)
Member
Joined: 6 years ago

Hi @eel,

If I resize them, it's fine for the widget and the forum but the pic on the profile page is distorted.

Avatar thumbnail generator script is located in wpforo/wpf-includes/class-members.php file.

Find this line and change the value as you need:

$image->resize( 150, 150, true );

Also please read this FAQ topic: https://wpforo.com/community/faq/forum-is-slow/


Posts: 118
 eel
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@eel)
Estimable Member
Joined: 6 years ago

Thank so much. This was my last question. Off to leave a review. I really appreciate how helpful you are. It's astonishing, really. Have a good day!

 


1 Reply
Alvina
Moderator
(@alvina)
Joined: 6 years ago

Member
Posts: 1860
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Hi @eel,

Nice!

Thank you very much for your kind words and for your review too. Nice!


Share: