[TYPO3-dev] Watermark on pictures in TYPO3 6.2
Frans Saris
franssaris at gmail.com
Wed Feb 11 19:48:23 CET 2015
Hi Martin,
adding the following typoscript should work.
lib.watermark = IMG_RESOURCE
lib.watermark {
file = GIFBUILDER
file {
format = jpg
quality = 88
XY = [10.w],[10.h]
# 10 is just used to detect the size
10 = IMAGE
10.file {
import.current = 1
treatIdAsReference = 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 = IMAGE
15.offset = 10,10
15.file = fileadmin/watermarkt.jpg
}
}
tt_content.image.20.1.file {
m.mask.import.cObject < lib.watermark
m.mask.import.cObject.treatIdAsReference = 1
m.bgImg < .m.mask
}
gr. Frans
2015-02-08 23:33 GMT+01:00 Martin Lipp <martin.lipp at gmail.com>:
> Hey,
>
> how to I add a watermark to a picture in TYPO3 6.2? I tried [1] and [2]
> both did not work in the 6.2 version. I'm guessing it's because of the
> change to the File Abstraction Layer for file handling.
>
> Thanks,
> Martin
>
> [1] http://www.pi-phi.de/286.html
> [2] http://tobiasbraun.org/2012-09-07/typo3-lightbox-mit-
> fancybox-und-wasserzeichen/
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list