[TYPO3] Scale gifbuilde image

Tapio Markula tapio.markula at atwebteam.com
Sun Dec 10 19:02:43 CET 2006


Christopher Torgalson

> I guess you're trying to scale the image to 20 x 70 pixels?

no - scale the image 70% from the original size - divide about 1.4

  All you
> really need to understand is that SCALE is a gifbuilder object like
> TEXT etc--it works exactly the same way as all the other items in that
> section of GIFBUILDER. So from your sample above, remove the line
> '1=SCALE {' , the corresponding '}' and '1.value = height=20,70'.
> 
> Then, add something like this:
> 
> page.2.1.50 = SCALE
> page.2.1.50 {
>    width = 70
>    height = 20
> }
that doesn't work - I need percentage scaling

> Note that like GIFBUILDER's XY property, scale has 'calc', so that if
> you want to, you should be able to explicitly connect the size after
> scaling to the original size:
> 
> ## Set the initial size of the GIFBUILDER object:
> XY = [20.w] +20,22
> ...
> ...
> ...
> ## Set the final size to half the original size:
> 50 = SCALE
> 50 {
>    width = [20.w]/2+10
>    height = 11
> }

too much


More information about the TYPO3-english mailing list