Closed (works as designed)
Project:
Avatar Selection
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2011 at 21:59 UTC
Updated:
11 Feb 2012 at 16:57 UTC
Specify width and height attributes for avatar images
(Firebug Page Speed analyzer reports missing attributes).
Comments
Comment #1
SeanA commentedI would think, since the core
profileuser 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.Comment #2
stella commentedThe 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.