More efficient image module
joemc91 - October 11, 2004 - 15:08
| Project: | Image filter |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
I wanted the image_filter module to be more efficient by using the already existing thumbnail for default displays but still allowing one to choose the size. If no size is specified, such as [image:34], then the thumbnail that was created by the image module is used. Otherwise the node is called to scale the image. Besides this, now styles are used to assign borders, width, height, etc instead of the old img tags. This was to increase xhtml compliance.
| Attachment | Size |
|---|---|
| drupal_54 | 5.06 KB |

#1
#2
Reopening, I'm pretty sure this was closed erroneously.
#3
If you have img_assist installed you can get this to work for the time being by changing the return statement in function theme_image_inline_img($img)
from:
return l('nid", ...
to:
return l('nid&thumb=1", ...
#4
Oops... Looks like it filtered out my code
Change it from:
return l('<img src="' . url("image/view/$img->nid", ...
to
return l('<img src="' . url("img_assist/gen/$img->nid&thumb=1", ...
#5
Duplicate of http://drupal.org/node/10815