[TYPO3-english] typo3 + imagemagick + scaling of alpha transparent pngs

horace grant horace3d at gmail.com
Fri Aug 20 17:21:38 CEST 2010


On Fri, Aug 20, 2010 at 5:13 PM, David Bruchmann
<typo3-en at bruchmann-web.de> wrote:
> ----- Ursprüngliche Nachricht -----
> Von:        horace grant <horace3d at gmail.com>
> Gesendet:   Freitag, 20. August 2010 16:46:44
> An:         TYPO3 English <typo3-english at lists.typo3.org>
> Betreff:    Re: [TYPO3-english] typo3 + imagemagick + scaling of alpha
> transparent pngs
>
>> i don't use any special typoscript for scaling images. i mean the
>> standard content element image scaling behaviour of typo3.
>>
>> i noticed that my hoster seems to use graphicsmagick:
>>
>>
>>
>> Current configuration
>>
>> GraphicsMagick enabled:
>>     1
>> GraphicsMagick path:
>>     /usr/bin/ (1.1.11)
>> GraphicsMagick path/LZW:
>>     /usr/bin/ (6.3.7)
>> Version 5/GraphicsMagick flag:
>>     gm
>>
>> GDLib enabled:
>>     1
>> GDLib using PNG:
>>
>> IM5 effects enabled:
>>     -1 (Blurring/Sharpening with IM 5+)
>> Freetype DPI:
>>     96 (Should be 96 for Freetype 2)
>> Mask invert:
>>     0 (Should be set for some IM versions approx. 5.4+)
>>
>> File Formats:
>>     gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai
>>
>>
>>
>> could this be the reason? all the other image manipulation features
>> work great though.
>>
>> i can't post an example of the images since my client probably
>> wouldn't like that. but they look kind of distorted (like the rows and
>> columns of pixels get messed up because the alpha byte gets
>> interpreted wrongly) and the resulting transparency is 0/1
>> transparency instead of alpha transparency.
>>
>
> Hi Horace,
>
> ok, here are my settings for IM:
>
> $TYPO3_CONF_VARS['GFX']["im"] = '1';
> $TYPO3_CONF_VARS["GFX"]["im_negate_mask"] = '1';
> $TYPO3_CONF_VARS["GFX"]["im_imvMaskState"] = '0';
> $TYPO3_CONF_VARS["GFX"]["im_v5effects"]='1';
> $TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = 'composite';
> $TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1';
> $TYPO3_CONF_VARS["GFX"]["im_path"] = 'N:\ImageMagick-6.3.7-Q16\\';
> $TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = 'N:\ImageMagick-6.3.7-Q16\\';
>
> $TYPO3_CONF_VARS["GFX"]["im_jpg_quality"] = '96';
> $TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96';
> $TYPO3_CONF_VARS["GFX"]["gdlib_png"] = '1';
> $TYPO3_CONF_VARS["GFX"]["gdlib_2"]='1';
> $TYPO3_CONF_VARS["GFX"]["im_mask_temp_ext_gif"] = '0';
> $TYPO3_CONF_VARS["GFX"]["thumbnails_png"] = '1';
>
> Just saw the post from Jigal that alpha-transparency still doesn't work in
> TYPO3 but I'd try to set at least the last 6 lines too, suppose it will
> improve your results in general.


thanks! i think i have most of this set too but i will check again...

cheers,
horace


>
> Greets,
> David
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list