Hallihallo!
Mit folgendem Typoscript habe ich ein Wasserzeichen für alle Bilder umgesetzt:
tt_content{
image.20.1.file >
image.20.1.file {
import.current = 1
width.field = imagewidth
m.mask.import.cObject = IMG_RESOURCE
m.mask.import.cObject.file = GIFBUILDER
m.mask.import.cObject.file {
XY = [10.w],[10.h]
format = png
10 = IMAGE
10.file {
import.current = 1
width.field = imagewidth
maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
maxWInText = {$styles.content.imgtext.maxWInText}
maxWInText.override.data = register:maxImageWidthInText
}
20 = BOX
20.dimensions = 0,0,[10.w],[10.h]
20.color = #FFFFFF
30 = IMAGE
30.align = c,c
30.if.isTrue.field = image_zoom
40 = TEXT
40.text = www.domain.de
40.align = center
40.offset = 0,[10.h]/2
40.fontSize = 18
40.fontColor = #999999
40.antiAlias = 1
40.niceText = 1
}
m.bgImg.import.cObject = IMG_RESOURCE
m.bgImg.import.cObject.file = GIFBUILDER
m.bgImg.import.cObject.file {
XY = [10.w],[10.h]
format = png
10 = IMAGE
10.file {
import.current = 1
width.field = imagewidth
maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
maxWInText = {$styles.content.imgtext.maxWInText}
maxWInText.override.data = register:maxImageWidthInText
}
15 = BOX
15.dimensions = 0,0,[10.w],[10.h]
15.color = #FFFFFF
30 = IMAGE
30.file = fileadmin/templates/grafix/wasserzeichen.png
30.align = c,c
}
}
}
Das Problem ist, dass nun wirklich bei allen Bildern das Wasserzeichen eingebunden wird.
Ich würde gerne erreichen, dass nur bestimmte Bilder oder bestimmte Bereiche der Site mit dem
Wasserzeichen versehen werden.
Wie kann ich das umsetzen? o.O
Dank an euch & Gruß
tox