TYPO free

home

fighting for TYPO free code

Gifbuilder tests

Cool shadow effect made using gifbuilder object

Only it does not play nice with lightbox.

https://wiki.typo3.org/index.php/GIFBUILDER

  1. tt_content.image.20.1.file >
  2. tt_content.image.20.1.file = GIFBUILDER
  3. tt_content.image.20.1.file {
  4.         XY = [10.w]+20,[10.h]+20
  5.         # The background color of the image/content
  6.         backColor = #fbfbfb
  7.         # Create a "dummy" image from the real image which is 20 pixel
  8.         # smaller than the set width.
  9.         10 = IMAGE
  10.         10 {
  11.                 file.import.current = 1
  12.                 file.width.stdWrap = 1
  13.                 file.width.stdWrap.field = imagewidth
  14.                 file.width.stdWrap.wrap = |-20
  15.                 file.width.prioriCalc = intval
  16.                 offset = 10,10
  17.         }
  18.         # Draw a black/gray box over the dummy image
  19.         20 = BOX
  20.         20.dimensions = 10,10,[10.w],[10.h]
  21.         # You have to set lib.shadowIntensity in your constants.
  22.         20.color = {$lib.shadowIntensity}
  23.         # Blur the black box
  24.         30 = EFFECT
  25.         30.value = blur=99 |
  26. #       Blur again if required (wider blurred edge/shadow)
  27. #       31 < .30
  28.         # Put the image on top again at a slightly more left top position.
  29.         50 < .10
  30.         50.offset = 5,5
  31.        
  32.         import.current = 1
  33.         width.field = imagewidth
  34.        
  35.         imagelinkwrap < .imagelinkwrap
  36. }