The default gravatar should have the same size of the other gravatars:
I have set the size on my site to 50x50, but the default gravatar image have a size of 80x80
Thank you in advance
The default gravatar should have the same size of the other gravatars:
I have set the size on my site to 50x50, but the default gravatar image have a size of 80x80
Thank you in advance
Comments
Comment #1
dave reidWhat user picture type modules are you using? ImageCache Profile?
Comment #2
Anonymous (not verified) commentedI'm not using any. I just want to display gravatars on comments. By now I'm setting the size with CSS.
Comment #3
Narno commentedYes, it's a known problem: the default image (parameter "d") is not resized, even if the size is forced through the parameter "s".
The solution is to add your own picture to the right dimensions in the field for: admin/user/settings#edit-user-picture-default
Comment #4
wim leersStill a problem in 7.x. Great work-around though :)
Comment #5
alan d. commentedChanging to a bug report as the image style results in a broken URL in Drupal 7, at least for the default image.
Setting the user picture style in Drupal 7 breaks the returned image as the HTTP schema does not work with theme('image_style') in gravatar_preprocess_user_picture().
So can user_picture_style style be disabled in D7 and for newbies. maybe adding a size interface (ie the s parameter).
Once #334630: Cache gravatar images locally is resolved, image styles should be easy to implement.
Steps to replicate:
1 - Enable image module
2 - Assign a user avatar preset at admin/config/people/accounts/settings
3 - View the resulting generated content
Comment #6
ht990332 commentedoops, posted in wrong place
Comment #7
deggertsen commentedI believe this should be marked as a duplicate of #334630: Cache gravatar images locally
Having that issue solved would fix this issue as well as you would then be able to assign an image style that applies to your gravatar pictures as well.
Comment #8
dauledk commentedI know this is an old issue 😅, but Auth0 is using Drupal to provide gravatars and I am now running into this problem of the fallback image not being resized. Is there any known workaround?
Link to issue at Auth0 community: https://community.auth0.com/t/request-user-picture-in-different-size/294...