[TYPO3-dev] kb_allcolors + gm

S. Teuber traveler_in_time at gmx.net
Mon Mar 6 11:03:33 CET 2006


Hi there,

since kb_allcolors is going to be part of the core in TYPO3 4, I ask this 
here:

Has anybody experienced problems with using masks in GIFBUILDER, 
kb_allcolors and Graphics Magick at the same time?

I have a site where some images are created using GIFBUILDER and some 
masks. You can see that those images have 256 colors, they should have 
more, so I installed kb_allcolors.

TYPO3 3.8.1. Production server has PHP4 with bundled GDLib 2.0.28 
compatible, live server has PHP5 with GDlib 2.0. Both machines run 
graphicsmagick 1.1.6, both have ImageMagick installed, but TYPO3 is 
configured to use gm.

On both machines, if kb_allcolors is installed, the images are kind of 
"inverted": 

- Headlines that should be [color] on white turn into [color] on black
- Head-Banner, a scaled JPG obtained through levelmedia with a half-
transparent logo in the left corner, turns invisible (white)

Strangest thing is: If I check the Image processing in the Install Tool, 
without kb_allcolors everything is fine. After kb_allcolors is installed, 
the masks ("Combine images") are inverted! 

Since the im_negate_mask and im_imvMaskState values are hardcoded in 
t3lib/config.default.php if the graphics package is "Graphics magick":

if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']==='gm')     { 
      $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState'] = 1; 
      $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_no_effects'] = 1; 
      $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_v5effects'] = -1; 
 }

there's no way to alter those values from the install tool. I commented the 
passage above, altering the values until the images in "Combine images" 
were rendered as they should be, but although I cleared every imaginable 
location - FE cache, BE cache, cached image sizes browser cache and 
typo3temp-files - the problem in the Frontend still persisted.

Has anybody encountered similar problems? Does kb_allcolors work with 
graphicsmagick and GIFBUILDER-masks? 

Sven




More information about the TYPO3-dev mailing list