[TYPO3-mvc] How can I create watermark in my extension?
Дмитрий Васильев
dmitry at typo3.ru.net
Sat Dec 1 14:09:50 CET 2012
Hi all,
To make watermark images in my extension I write
1. In Typoscript
lib.watermark >
lib.watermark = IMAGE
lib.watermark.file = GIFBUILDER
lib.watermark.file {
XY = 1280,1024
format = jpg
quality = 100
10 = IMAGE
10 {
file.import = uploads/tx_myext/
file.import.current = 1
file.import.listNum = 0
file.maxW = 1280
}
20 = TEXT
20 {
text = {$watermark}
offset = -5, 300
angle = 45
fontFile = fileadmin/fonts/arial.ttf
fontSize = 16
}
}
2. In Fluid template
{thumb.image -> f:cObject(typoscriptObjectPath: 'lib.watermark')}
It work good, and generated code <img
src="typo3temp/GB/watermark-pic.jpg" />
But I need generate code like <a href="typo3temp/GB/watermark-pic.jpg">
For non-watermark image I use
<a href="<f:uri.image src='uploads/tx_myext/{thumb.image}' width='1200' />"
Help me, how can I create watermark in my extension?
More information about the TYPO3-project-typo3v4mvc
mailing list