Zum Inhalt springen

Text w/image in GIF rendern

Erstellt am 17. September 2003 · 2 Antworten · letzte Antwort am 28. September 2004

Tags: Bilder, Frage

Michael.​Igler ·

Hallo allerseits !

Ich möchte den Pagecontent von Text w/image in ein Gif-File rendern.
Bodytext und Header reinrendern funktioniert soweit, jedoch nicht die
Bilder. Der Punk wo's hängt ist : 50 = IMGTEXT

Hier mein Codeausschnitt :

tt_content.textpic = IMAGE
tt_content.textpic.offset = 200,500
tt_content.textpic.file = GIFBUILDER
tt_content.textpic.file {
backColor = {$BackgroundColor}
XY = {$Frame.xSizeFrame} , {$Frame.ySizeFrame}
offset = {$Frame.offsetX} , {$Frame.offsetY}

10 = BOX
10.dimensions = 0,0,{$Frame.xSizeFrame} , {$Frame.ySizeFrame}
10.color = {$BackgroundColor}

20 = BOX
20.dimensions = 1,1,{$Frame.xSizeInnerFrame}-2 , {$Frame.ySizeInnerFrame}-2
20.color = {$MintBlau}

30 = BOX
30.dimensions = 2,2,{$Frame.xSizeInnerFrame}-4 , {$Frame.ySizeInnerFrame}-4
30.color = {$BackgroundColor}

40 = TEXT
40 {
text.field = header
niceText = 1
offset = 0,30
fontColor = {$FontColor}
fontFile = {$FontArt}
fontSize = {$FontSize}
align = center
spacing = {$FontSpacing}
}

# Ab hier bräuchte ich Eure Hilfe !!

50 = IMGTEXT
50 {
imgPath = fileadmin/Vorlagen
imgList.field = image
imgObjNum = 1
#file = fileadmin/Vorlagen/zeitung_transparent.gif
offset = 130, 80
}

# Ab hier passts dann wieder

60 = TEXT
60 {
text.field = bodytext
niceText = 1
offset = 400,90
fontColor = {$FontColor}
fontFile = {$FontArt}
fontSize = {$FontSize}
align = left
#spacing = {$FontSpacing}
}
}

Vielen Dank für die Hilfe im Vorraus,

Michael

Michael.​Igler ·

... bin dann nach langem Suchen selbst auf die Antwort gekommen :

50 = IMAGE
50 {
file.import = uploads/pics/
file.import.field = image
file.import.listNum = 0
offset = 120, 100
}

Peace,

Mike

fschnidi ·

hallo!
ich habe nun schon das ganze forum (auch google) auf und runtergeforstet zum thema " a là tt_content als bild rendern".

ich habe nun diese codezeilen auch in meinem setup eingefügt. natürlich erscheint bei meinem marker nur ein 1x1pixel grosses bild, da ja bei mir die variablen nicht ersetzt werden (zb {$BackgroundColor}).
woher werden die werte für diese variablen gezogen?? muss ich da irgendwie mit css_styled content arbeiten oder wie? ich habe bei meinen statictemplates nur content (default)ausgewählt.

danke für inputs zu diesem thema. gruss flo