[TYPO3-german] Dynamische Skalierung von Bildern (Gifbuilder) je nach Textl ä nge

thorsten greiner ng-reply at brainoutput.net
Tue Mar 14 12:03:19 CET 2006


hi...

wie ist es damit:


 marks.TEXTRIGHT = IMAGE
 marks.TEXTRIGHT.file = GIFBUILDER
 marks.TEXTRIGHT.file {
   transparentBackground = 1
   XY = 70,[10.h]+10
   10 = TEXT
   10.text.field = title
   10.fontFile = fileadmin/fonts/BNKGOTHL.TTF
   10.fontSize = 60
   10.fontColor = #dddddd
   10.offset = 55,[10.h]+10
   10.antiAlias = 1

   50 = EFFECT
   50.value = rotate=90
 }

cheers, thorsten


Am 14.03.2006 9:26 Uhr schrieb "Stefanie Reppel" unter <info at reppel.biz> in
mailman.11767.1142324788.3122.typo3-german at lists.netfielders.de:

> Hallo Jörg,
> danke für Deine schnelle Antwort!
> Mit der Eigenschaft "maxWidth" das klappt leider nur, wenn der Text
> nicht um 90 Grad gedreht ist.
> Eine Eigenschaft "maxHeight" gibt es nicht.
> Kennst du eine Möglichkeit, das ganze Bild nachträglich zu drehen?
> Dann könnte ich zunächst das Bild mit maxWidth erzeugen, und es dann
> drehen.
> 
> Viele Grüße
> Steffi
> 
> Joerg Wagner - DigiLog multimedia schrieb:
> 
>> Schau Dir mal die maxWidth-Property des Text-Objectes unter GIFBUILDER an
>> (NICHT die maxWidth von GIFBUILDER selbst!):
>> Die mach genau das:
>> "Sets the maximum width in pixels, the text must be. Reduces the fontSize if
>> the text does not fit within this width."
>> 
>> --
>> Jörg Wagner
>> DigiLog multimedia
>> 
>> 
>> "Stefanie Reppel" <steffi at reppel.biz> schrieb im Newsbeitrag
>> news:mailman.11609.1142290638.3122.typo3-german at lists.netfielders.de...
>>  
>> 
>>> Hallo zusammen,
>>> 
>>> ich bin noch eine Anfängerin und habe das folgende TypoScript-Problem:
>>> 
>>> Auf einer Seite befindet sich ein um 90 Grad gedrehter Text, der die
>>> Überschrift ausgibt (GIFBUILDER).
>>> Bei kurzen Texten sollen diese mit Schriftgröße 60 angezeigt werden, wenn
>>> das Bild größer als 550 px ist,
>>> soll das Bild auf die Höhe von 550 px verkleinert werden.
>>> An dieser Stelle habe ich ein Problem mit dem "if". Vielleicht gibt es ja
>>> auch eine andere Lösung?
>>> 
>>> Hier mein Code:
>>> 
>>> marks.TEXTRIGHT = IMAGE
>>> marks.TEXTRIGHT.file = GIFBUILDER
>>> marks.TEXTRIGHT.file {
>>>  transparentBackground = 1
>>>  XY = 70,[10.h]+10
>>>  10 = TEXT
>>>  10.text.field = title
>>>  10.fontFile = fileadmin/fonts/BNKGOTHL.TTF
>>>  10.fontSize = 60
>>>  10.fontColor = #dddddd
>>>  10.offset = 55,[10.h]+10
>>>  10.antiAlias = 1
>>>  # um 90 Grad gedreht
>>>  10.angle = 90
>>>    #Hier nun die Skalierung
>>>  20 = SCALE
>>>  # Kann ich hier evtl auch auf [10.h] zugreifen?
>>>  20.if.value = 20.height
>>>  20.if.isGreaterThan = 550
>>>  20.height = 550
>>> }
>>> 
>>> Egal wie ich es schreibe, es wird entweder alles skaliert oder nix.
>>> 
>>> Schon mal vielen Dank!
>>> Viele Grüße
>>> Steffi
>>> 
>>> 
>>>    
>>> 
>> 
>> 
>>  
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>> 

-- 
there are only 10 types of people who understand binary... those who do and
those who don't...




More information about the TYPO3-german mailing list