Closed (fixed)
Project:
Taxonomy Image
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Sep 2007 at 08:36 UTC
Updated:
22 Feb 2008 at 01:22 UTC
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
Comment #1
nancydruThe 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.
Comment #2
nancydruBTW, at some point I will probably change the code to allow an attributes array to be more consistent with core.
Comment #3
nancydruComment #4
nancydruTaxonomy_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.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.