[TYPO3] How do I make gifbuilder work on temp generated image files ?
Christopher Torgalson
bedlamhotel at gmail.com
Mon Jun 25 16:45:53 CEST 2007
Hi,
On 6/25/07, dave typo <typothree at gmail.com> wrote:
> Is there a way to make gifbuilder work on a file that is generated by typo3?
> For example, could I make gifbuilder affect a generated file like
> http://www.mysite/typo3temp/pics/4a4eb19c26.jpg ? obviously I cannot
> reference 4a4eb19c26.jpg in the ordinary way, because after the page is
> regenerated it will have a new file name...
>
> I am trying to put a gifbuilder overlay on an image. I know how to do it
> with a specific file name, but I was wondering if there's a way to do it
> with a dynamically made image.
> Can this be done in typoscript?
>
> is there an extension that allows this type of functionality?
>
>
>
> thank you for any replies,
>
> even a 'no, can't be done' ...
Check out GIFBUILDER's 'IMAGE' object [1]. You basically need to do
something like this:
lib.foo = IMAGE
lib.foo {
file = GIFBUILDER
file {
XY = 200,100
backColor = #cccccc
10 = IMAGE
10 {
...
}
20 = IMAGE
20 {
...
}
}
}
Notice that the file property of GIFBUILDER's IMAGE object has a
datatype of 'imgResource' which means you could make the file an IMAGE
cObject, or yet /another/ GIFBUILDER object!
If you're interested in GUFBUILDER in general, I just finished a short
article on using it in a basic way at
http://typo3apprentice.com/howto/rtfm/gifbuilder/ It explains a bit
more about the datatype 'imgResource'.
--
Christopher Torgalson
http://www.typo3apprentice.com/
[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/9/2/#id3663785
More information about the TYPO3-english
mailing list