[TYPO3-english] GIFBUILDER problem
Jigal van Hemert
jigal.van.hemert at typo3.org
Mon Aug 11 14:18:15 CEST 2014
Hi,
My reply between your lines :-)
On 11-8-2014 12:42, Jan Kornblum wrote:
> i want GIFBUILDER to create dynamic sized images (up to an upper limit)
> with a centered watermark on it:
>
> file = GIFBUILDER
> file {
> XY = [10.w],[10.h] # This *does* work!
Correct! XY has +calc in the Data type description [1]. This means that
some calculations are possible [2].
> 10 = IMAGE
> 10 {
> # The image itself
> file{
> import.current = 1
> maxW = 600
> maxH = 600
> }
> }
> 20 = IMAGE
> 20 {
> # The watermark overlay
> file = watermark.png
> file{
> width = [10.w]/2 # This does not work!
Correct. file is of type imgResource [4] and this does not have +calc
properties [3].
> height = [10.h]/2 # This does not work!
> }
> offset = [10.w]/2-[20.w]/2,[10.h]/2-[20.h]/2 # This does not work!
> }
> }
[1]
http://docs.typo3.org/typo3cms/TyposcriptReference/Gifbuilder/ObjectNames/Index.html
[2]
http://docs.typo3.org/typo3cms/TyposcriptReference/Gifbuilder/Gifbuilder/Index.html
[3]
http://docs.typo3.org/typo3cms/TyposcriptReference/Gifbuilder/ObjectNames/Index.html#image
[4]
http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Imgresource/Index.html
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-english
mailing list