[SOLVED] CB Connect, Facebook and Avatar image quality

9 years 6 months ago - 9 years 5 months ago #252915 by timomer
Hi,

I would like the Avatar on the CB Login module to be larger. This is easy to do via CSS but the image quality is too poor. (Changing from 60px to 100px width)

CB Connect is pulling in this image automatically via Facebook, is there anyway I can improve the quality of the image it is grabbing?

Thanks, tim

Please Log in to join the conversation.

9 years 5 months ago #252974 by krileon
Replied by krileon on topic CB Connect, Facebook and Avatar image quality
If you're using latest CB Connect release you can modify the HybridAuth Facebook provider and adjust the width/height of the profile picture URL. File can be found below.

components/com_comprofiler/plugin/user/plug_cbconnect/hybridauth/Providers/Facebook.php

Beyond the above I can not advise you on core modifications.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 5 months ago #253717 by timomer
Replied by timomer on topic CB Connect, Facebook and Avatar image quality
Hi Krileon, thanks for your reply and sorry for my delayed response.

Looking at your code you are already pulling in the profile picture ar 150x150 - whats perfect.

It appears that when you pull in a profile picture from facebook two images for that user are created under images/comprofiler/, a large image and a small image, the small image starts with "tn".

It appears that the CB Login module is using the "tn" image and this is where the issue is.

Can you suggest how I can tell the CB Login module to use the larger image?

Many thanks,
tim

Please Log in to join the conversation.

9 years 5 months ago #253815 by krileon
Replied by krileon on topic CB Connect, Facebook and Avatar image quality
The image is pulled then sent through normal image processing behavior. This includes generating the thumbnail. The "tn" version is the thumbnail, which the login module, userlists, etc.. will use. You can adjust the thumbnail size within CB > Configuration > Images, but it won't affect already uploaded images.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 5 months ago #253868 by timomer
Replied by timomer on topic CB Connect, Facebook and Avatar image quality
"adjust the thumbnail size within CB > Configuration > Images"

Perfect, that's the setting I needed, thank you!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.296 seconds

Facebook Twitter LinkedIn