How can I change the image output size?
I have a coutry flags. All flags are of the same size (medium). And usually the use this way. But now I want them to be shown in a list and they should be of half of the size.
I try to send this:

.... 
    $items[] = taxonomy_image_display($term->tid, "width='20' height='12'")." | ".l($term->name, "ubicacion/".$term->tid."/portada") ;
}...

It shows the flags, but it doesn't respect the sizes and they continue being seen of the original size.
How the change?

Thank you

Comments

nancydru’s picture

The only I see "wrong with that code is you have your quotes backwards - you're using singles where you should have doubles, and vice versa.

nancydru’s picture

BTW, at some point I will probably change the code to allow an attributes array to be more consistent with core.

nancydru’s picture

Title: Size » Problem with additional attributes
Version: 5.x-1.0-beta1 » 5.x-1.x-dev
Assigned: Unassigned » nancydru
nancydru’s picture

Status: Active » Fixed

Taxonomy_image_display may now be called with a standard Drupal attributes array (the string method is still there, just in case).

If an attribute is the same as one of the computed attributes (width, height, alt, title), the supplied attribute will be used.

Fix committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.