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

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

What user picture type modules are you using? ImageCache Profile?

Anonymous’s picture

I'm not using any. I just want to display gravatars on comments. By now I'm setting the size with CSS.

Narno’s picture

Assigned: Unassigned » Narno
Category: feature » support
Status: Postponed (maintainer needs more info) » Needs review

Yes, 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

wim leers’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Still a problem in 7.x. Great work-around though :)

alan d.’s picture

Category: support » bug
Priority: Normal » Major

Changing 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

ht990332’s picture

oops, posted in wrong place

deggertsen’s picture

Status: Needs review » Closed (duplicate)

I 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.

dauledk’s picture

Issue summary: View changes

I 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...