More efficient image module

joemc91 - October 11, 2004 - 15:08
Project:Image filter
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
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.

AttachmentSize
drupal_545.06 KB

#1

Anonymous - October 25, 2004 - 17:20

#2

Uwe Hermann - October 25, 2004 - 19:09

Reopening, I'm pretty sure this was closed erroneously.

#3

Anonymous - October 27, 2004 - 06:04

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

Anonymous - October 27, 2004 - 06:06

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

mrowe - November 8, 2004 - 23:14
 
 

Drupal is a registered trademark of Dries Buytaert.