Hello,

I noticed that the default user picture does not get cropped. For example, a user signs up and is assigned the default user picture. They then perform an action on the site where an image cached version of their profile picture should show up. The image style is reuse javascript crop selection then scale to size.

The problem is that the user picture scales to size properly only if it's uploaded by the user. If they don't upload a user picture and keep the default image, the default image will not resize.

Hopefully I've explained this clearly enough....thanks for the help!!

Comments

Jessica A’s picture

anyone?

nils.destoop’s picture

Can you check the url from the default picture? I think that the default profile picture doesn't load with imagestyles. That's why none of the effects are working.

Jessica A’s picture

Hi Zuuperman,

I have the default picture path set as "sites/default/files/defaultpic.jpg"

Picture display style is set as "javascript_crop"

My block view uses an image style that starts with "reuse a javascript crop selection" then scale 60x60, the defaultpic.jpg will not take this image style and is instead displayed at the default javascrip_crop image size.

Thanks again.

nils.destoop’s picture

Status: Active » Closed (works as designed)

Just did the same locally. When a user doesn't have a picture, core doesn't render the image through imagestyles. But it just shows the entered image (sites/default/files/default_avatar.jpg). Because of this imagecrop can't work on the default image (or all other image styles).

Jessica A’s picture

In case anyone stumbles across this, it was fixed by changing the path of the default picture. It had nothing to do with this module.

For the fix read this node: http://drupal.org/node/1090770