[TYPO3-core] RFC #13750: Bug: Several GIFBUILDER features broken for IM4, IM6 and GM

Susanne Moog typo3 at susanne-moog.de
Sat Mar 6 16:07:46 CET 2010


Hi Jörg,

Joerg Wagner [DigiLog] wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13750
> 
> Branches:
> TYPO3_4-3 & trunk
> TYPO3_4-2 & trunk
> 
> Problem:
> When IM4, IM6 or GM are used, several GIFBUILDER features that
> internally use mask images (e.g. SHADOW and NICETEXT) are broken.
> The reason is a flawed processing of quoted subparts in IM commands.
> This flaw probably has many more side effects!
> 
> Solution:
> When testing substrings for leading quotes, function
> t3lib_div::unQuoteFilenames() may only go into "start quote found" mode
> if the substring does not also contain a trailing quote. This is done by
> a simple change of the regular expression used to detect leading quotes.

Any hints how to reproduce this behavior? I used the following TS on
Ubuntu / GraphicsMagick and the quoting results were the same before and
after the patch (both correct).

page.130 = IMAGE
page.130 {
  file = GIFBUILDER
  file {
    XY = 200,50
    format = jpg
    quality = 88
    backColor = #FFFFFF
    10 = TEXT
    10 {
      text = Hallo Weltas!
      fontColor = #000000
      fontSize = 38
      fontFile = fileadmin/Acapulco.ttf
      offset = 0,40
    }
    20 = SHADOW
    20 {
      blur = 30
      color = #FF00FF
      textObjNum = 10
    }
  }
}


Result:
Array
(
    [0] => +profile
    [1] => '*'
    [2] => -compose
    [3] => over
    [4] => +matte
    [5] => 'typo3temp/temp/a885e075fed9608a611a2ea024b2a869_menu.gif'
    [6] => 'typo3temp/temp/a885e075fed9608a611a2ea024b2a869_color.gif'
    [7] => 'typo3temp/temp/f9702ffd24d69faf71be62210fd6d47f.gif'
    [8] => 'typo3temp/temp/a885e075fed9608a611a2ea024b2a869_menu.gif'
)

Best regards,

Susanne




More information about the TYPO3-team-core mailing list