if the image size of the icons is defined via the admin screen it is subsequently ignored. The error is n the theming function where the width and height are added as parameters to the theme_image function where they should be added as attributes:
function theme_languageicons_icon($variables) {
...
if ($size = check_plain(variable_get('languageicons_size', '16x12'))) {
list($width, $height) = explode('x', $size);
$image += array('width' => $width, 'height' => $height);
}
...
Should be replaced by:
function theme_languageicons_icon($variables) {
...
if ($size = check_plain(variable_get('languageicons_size', '16x12'))) {
list($width, $height) = explode('x', $size);
$image['attributes'] += array('width' => $width, 'height' => $height);
}
...
Comments
Comment #1
Freso commentedtheme_image()accepts the keyswidthandheightdirectly, not as part of theattributesarray: https://api.drupal.org/api/drupal/includes!theme.inc/function/theme_image/7What is the exact string you have in your size field? Have you checked the HTML output? What theme are you using? Are you using any modules that might override
theme_image()?Comment #2
fietserwinIt is the Arctica theme that overrides theme image but does not add variables width and height to the attributes.
To solve: in Arctica, file arctica\includes\theme-overrides.inc, add width and height to the array in the foreach statement: