[Typo3] Watermark all images automatically

Carlos A. Chiari O. ccho at dimension-e.net
Thu Sep 1 06:34:41 CEST 2005


Hi reena				

I have a client who needed a watermark feature for his site: http://www.lacascara.tv.

Each thumbnail displayed on the image gallery opens a watermarked image.

The watermark was made customizing the function responsable of the GIFBUILDER, so now the "file" property of the cObject IMAGE accepts "WATERMARK" as well as GIFBUILDER, via XCLASS method..

Once the image is made with the watermark, it is cached in the typo3temp dir. Only if some configuration changes - watermark file, jpg quality, watermark position, etc - the cache is generated again. So when the image is called for the first time, it generates the image. (I whish this could have been done more in a "typo3" way, but dont know how the images are cached by typo3).

Also made a custom backend module, so the images can be watermarked and cached before any user comes to the site.

If you are interested, please let me know to post/send the scripts.

BTW: For it to work, I needed to upgrade to GD 2+.

Best regards,

Carlos

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110136757/
					



More information about the TYPO3-english mailing list