models

Class generateThumbnailTask

lucee.Component
    extended by models.generateThumbnailTask

ColdThumbs image resize task for use with CFConcurrent ColdThumbs is a ColdFusion component to dynamically resize and cache images.

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Gary Stanton
  •  
    Constructor Summary
    init(any coldThumbs, struct theImage, string cachedFilename, struct fileInfo, [string authenticationString=''], [numeric width='0'], [numeric height='0'], [boolean fixCanvas='false'], [string interpolation='mitchell'], [string backgroundColor='000000'])
    Method Summary
    any call()
         Resize image.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any coldThumbs, struct theImage, string cachedFilename, struct fileInfo, [string authenticationString=''], [numeric width='0'], [numeric height='0'], [boolean fixCanvas='false'], [string interpolation='mitchell'], [string backgroundColor='000000'])

    Parameters:
    coldThumbs - The instance of ColdThumbs
    theImage - The extended image object
    cachedFilename - The filename to use when saving the cached image
    fileInfo - A struct of file info
    authenticationString - An authentication string if one is required (user:pass)
    width - Width of cached file
    height - Height of cached file
    fixCanvas - When true, fix the canvas size to the specified dimensions, whilst proportionally resizing the content. e.g. You may want to create a uniform square image from a portrait or landscape image.
    interpolation
    backgroundColor - When using the fixCanvas method, the resulting image may contain a blank area that should be filled with a colour. (hex or r,g,b)

    Method Detail

    call

    public any call()

    Resize image