Bug #16018
closedEffect "gray" of the GIFBUILDER object doesn't have any effect at all
0%
Description
Trying the following setup to render a grey scaled image with a colored overlay does not have any effect when using TYPO3 4.0RC2 or TYPO3 4.0:
lib.headerImage = IMAGE
lib.headerImage.file = GIFBUILDER
lib.headerImage.file {
XY = [10.w],112
backColor = #ffffff
10 = IMAGE
10.file.import = uploads/media/
10.file.import.data = levelmedia:-1 ,"slide"
10.file.import.listNum = 0
- greyscale image
20 = EFFECT
20.value = gray- Colored overlay
30 = IMAGE
30 {
file = GIFBUILDER
file {
XY = 400,112
backColor = #292186
}
mask = GIFBUILDER
mask {
XY = 400,112
backColor = #808080
}
}
}
- Colored overlay
Tested the setup with TYPO3 3.8.1 and there it works very well
(issue imported from #M3202)
Updated by Ingmar Schlecht over 18 years ago
Bernhard, could it be related to your truecolors patch?
Updated by Bernhard Kraft over 18 years ago
I just tested this on my local 4.0 installation and it worked without any problems.
I also use this method (overlaying a 50% transparent plane) on my soon coming own site and even for a GMENU RO element.
Here are the results:
Original:
http://think-open.org/kraftb/gb/autobahn.jpg
Only gray (I removed the overlay part):
http://think-open.org/kraftb/gb/gray.gif
With colored overlay:
http://think-open.org/kraftb/gb/colored.gif
I also tested it with gdlib_png = 1 ... the result ... so you belive me:
http://think-open.org/kraftb/gb/colored.png
Could you please send us information about the server environment (OS+version, 32/64bit, IM/GD/php versions) and all graphic relevant install tool settings ....
Updated by Patrick Rodacker over 18 years ago
The first 4.0 installation uses the following setup:
Environment: debian sarge, 32bit, IM 6.2.4, PHP 5.0.5-3, GDlib 2.0+
Graphic settings:
$TYPO3_CONF_VARS[GFX][image_processing] = 1
$TYPO3_CONF_VARS[GFX][thumbnails] = 1
$TYPO3_CONF_VARS[GFX][thumbnails_png] = 0
$TYPO3_CONF_VARS[GFX][noIconProc] = 1
$TYPO3_CONF_VARS[GFX][gif_compress] = 1
$TYPO3_CONF_VARS[GFX][imagefile_ext] = gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai
$TYPO3_CONF_VARS[GFX][gdlib] = 1
$TYPO3_CONF_VARS[GFX][gdlib_png] = 0
$TYPO3_CONF_VARS[GFX][gdlib_2] = 1
$TYPO3_CONF_VARS[GFX][im] = 1
$TYPO3_CONF_VARS[GFX][im_path] = /usr/bin/
$TYPO3_CONF_VARS[GFX][im_path_lzw] = /usr/bin/
$TYPO3_CONF_VARS[GFX][im_version_5] = im6
$TYPO3_CONF_VARS[GFX][im_negate_mask] = 0
$TYPO3_CONF_VARS[GFX][im_imvMaskState] = 1
$TYPO3_CONF_VARS[GFX][im_no_effects] = 1
$TYPO3_CONF_VARS[GFX][im_v5effects] = 1
$TYPO3_CONF_VARS[GFX][im_mask_temp_ext_gif] = 1
$TYPO3_CONF_VARS[GFX][im_mask_temp_ext_noloss] = miff
$TYPO3_CONF_VARS[GFX][im_noScaleUp] = 0
$TYPO3_CONF_VARS[GFX][im_combine$TYPO3_CONF_VARS_filename] = combine
$TYPO3_CONF_VARS[GFX][im_noFramePrepended] = 0
$TYPO3_CONF_VARS[GFX][jpg_quality] = 70
$TYPO3_CONF_VARS[GFX][enable_typo3temp_db_tracking] = 0
$TYPO3_CONF_VARS[GFX][TTFLocaleConv] =
$TYPO3_CONF_VARS[GFX][TTFdpi] = 72
$TYPO3_CONF_VARS[GFX][png_truecolor] = 0
Using GraphicsImage 1.1.7 instead of ImageMagick solved the problem for me on this machine.
Another 4.0 installation (previous 4.0RC2) uses the following setup:
Environment: Windows 2003 Server, 32bit, IM 6.2.6, PHP 5.1.3, GDlib 2.0+
Graphic settings as above.
Updated by Bernhard Kraft over 18 years ago
Change the value of this line:
$TYPO3_CONF_VARS[GFX][im_combine$TYPO3_CONF_VARS_filename] = combine
to "composite" and it will also work with IM (I hope :) "combine" was used with IM 4.x
Updated by Patrick Rodacker over 18 years ago
Setting
$TYPO3_CONF_VARS[GFX][im_combine$TYPO3_CONF_VARS_filename] = composite
didn't solve the problem at first until I discovered that I have to adjust the TS above slightly. Setting the following did the trick:
20 = EFFECT
20.value = gray |
I have to do some more testing on another machine and will report back after this.