Image Assist Image Generation

Functions used in image.module vs. img_assist.module (simplified):

image.module:

  • image_display()
    • is called for galleries, image nodes, image blocks, etc (everytime in image is shown)
    • returns <span ...><img ...></span>
    • can be passed a specific standard size only
    • may call _image_build_derivatives()
    • calls theme_image() to create the <img> tag
_image_build_derivatives()
  • rebuilds all standard image sizes for a particular node
img_assist.module: (more complicated, but more flexible)
  • image_display()
    • is called for thumbnails browsing, inline images, etc (everytime in image is shown)
    • returns <span ...><img ...></span>
    • can be passed EITHER a specific standard size only OR a custom size
    • may call _image_build_derivatives()
    • calls theme_image() to create the <img> tag
_image_build_derivatives()
  • rebuilds only a specfic image size (standard or custom size)

Functions

Namesort iconLocationDescription
img_assist_displayimg_assist/img_assist.moduleCreate an IMG tag for an image.
img_assist_render_imageimg_assist/img_assist.moduleReturn image HTML.
_img_assist_build_derivativesimg_assist/img_assist.moduleGenerate a image derivative See also_image_build_derivatives() in image.module