Menu


How can i generate an image from Typoscript using Gifbuilder


In order to generate an image from typoscript using Gifbuilder you can use the following snippet:

temp.titlebox = COA
temp.titlebox {
    2=IMAGE
           2{
             file=GIFBUILDER
             file{
                  XY=[10.w]+10,45
                  backColor= #FFFFFF
                  10=TEXT
                  10{
                     text = {field:title}
                     text.insertData=1
                     fontSize = 23
                     fontFile = fileadmin/templates/font/arial.ttf
                     fontColor = #2D2D2D
                     offset = 0,24
                  }
              }
           }  
  
}
temp.titlebox.wrap=<h1>|</h1>


In this example the text beeing used is the title of the page: {field:title} if you need another text just replace this with your text (for example: text = My text )





Google Search

 
wiki.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com