[Typo3-dev] use IM combine funtion in an extension

Wengrzik, Andreas Wengrzik at ewr.de
Tue Feb 22 16:36:56 CET 2005


Hi!


My array looks now like this


file.height	435.6m
file.width	440m
file.params	-gravity SouthEast -font Tahoma -pointsize 11 -draw "fill black text 6,6 'myText' text 5,5 'myText' fill white text 4,4 'myText'"
file.offset	0,0
file.mask	/fileadmin/mask.png
file	fileadmin/gallery_upload/myPicture.jpg
alttext	myPicture.jpg


But no mask in the image?

Some suggestions for me??
Thanks again!!

-andreas

> -----Original Message-----
> From: Kraft Bernhard [mailto:kraftb at gmx.net]
> Sent: Tuesday, February 22, 2005 3:44 PM
> To: typo3-dev at lists.netfielders.de
> Subject: Re: [Typo3-dev] use IM combine funtion in an extension
> 
> 
> Wengrzik, Andreas wrote:
> > this looks a little big like an watermark, but i need to 
> combine two image to get an transparent watermark - that will 
> look much better than only text in an image.
> > I also want to use an image not only text...
> 
> You can combine two images using a mask.
> This means you take your main image as background and then 
> put a second image (the overlay image) over it
> using a grayscale mask - in the areas where the mask image is 
> black (i think: or white?) you will see the
> main image and where it is white you will see the overlaid image ...
> 
> So you can use a program like photoshop to create the overlay 
> and mask image and then use the combine function
> to create the watermark on every image ...
> 
> You can combine those images without the need for any TS code 
> filled into some arrays by using:
> 
> t3lib_stdgraphic::combineExec($input, $overlay, $mask, $output);
> 
> If you really need to use the IMAGE() function because you 
> are also doing other stuff and this
> needs to be done via TS then you could add the following TS 
> to your IMAGE-setup (into the array):
> 
> 99 = IMAGE
> 99 {
>    file = /path/to/my/overlay.png
>    offset = 0,0
>    mask = /path/to/my/mask.png
> }
> 
> 
> Hope I understood what you meant and helped ...
> 
> greets,
> Bernhard
> -- 
> Kraft Bernhard
> MOKKA Medienagentur <http://www.mokka.at>
> T: +43 - 1 - 895 33 33 - 50
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
> 




More information about the TYPO3-dev mailing list