[TYPO3] Resizing 2nd image in GIFBUILDER to fit 1st image

Rudy Gnodde gnodde.rudy at wag.nl
Mon Mar 13 13:19:35 CET 2006


Hello,

I am trying to create an image using GIFBUILDER that combines 2 images
(one with mask) and when needed resizes them. I have the following
TypoScript:

file = GIFBUILDER
file {
  XY = [10.w],[10.h]
  format = jpg
  10 = IMAGE
  10 {
    file = fileadmin/images/image1.jpg
    file {
      maxW = 600
      maxH = 400
    }
  }
  20 = IMAGE
  20 {
    file = fileadmin/images/image2.jpg
    file {
      maxW = [10.w]
      maxH = [10.h]
    }
    mask = fileadmin/images/image2_mask.gif
    align = r,b
  }
}

It works, but does not resize the second image (image2.jpg) to the size
of the first image (image1.jpg). It probably doesn't work because [10.w]
and [10.h] in the second image don't point to the 10 of the first image,
but to a non-existent 10 in the second image's file. Is there any way to
solve this? If so, how?

Thanks,

Rudy Gnodde
WIND Internet
http://www.windinternet.nl



More information about the TYPO3-english mailing list