Specify width and height attributes for avatar images
(Firebug Page Speed analyzer reports missing attributes).

Comments

SeanA’s picture

I would think, since the core profile user module does the actual theming and display of user pictures, that this is not an issue for Avatar Selection. See template_preprocess_user_picture() in user.module, and theme_image() in includes/theme.inc.

stella’s picture

Status: Active » Closed (works as designed)

The Avatar Selection module can't control the display of avatars throughout the site, as that is done by Drupal core. As SeanA says, see template_preprocess_user_picture().

As for the display of the avatars in the selection widget on the user profile page and in the admin area, we do have control over that and are using theme_image() there. However, if I set the $getsize param to TRUE (in order to display the height and width) then the images no longer appear. This is because we have to use full urls (rather than relative paths) to the images. This is for private file system support, see #132277: The path of the pictures is not right for me for more information on that issue.