[Typo3-debian] Debian PHP4-GD2 without gif support, what can i do?

Alexander Schories alexander at schories.com
Thu Jul 1 01:06:53 CEST 2004


Hello again! :)


So here is the current gfx config of typo3:

(*** my comments *** ; all tries have been made with single option only AND
with combination of other options as well!)



----------8<------------


[GFX]: 
$TYPO3_CONF_VARS["GFX"] 
Configuration of the image processing features in TYPO3. 'IM' and 'GD' are
short for ImageMagick and GD library respectively.

 
[image_processing] 
Boolean. Enables image processing features. Disabling this means NO image
processing with either GD or IM!

[GFX][image_processing] = 1


 
[thumbnails] 
Boolean. Enables the use of thumbnails in the backend interface. Thumbnails
are generated by IM/partly GD in the file typo3/thumbs.php

[GFX][thumbnails] = 1


 
[thumbnails_png] 
Bits. Bit0: If set, thumbnails from non-jpegs will be 'png', otherwise 'gif'
(0=gif/1=png). Bit1: Even JPG's will be converted to png or gif
(2=gif/3=png)

[GFX][thumbnails_png] = 0


 
[noIconProc] 
Boolean. If true, icons are never processed with overlays for hidden,
starttime, endtime etc. They must be available pre-processed. If this is
disabled, do so only if you have full image processing capabilities on the
server for TYPO3.

[GFX][noIconProc] = 0


 
[gif_compress] 
Boolean. Enables the use of the t3lib_div::gif_compress() workaround
function for compressing giffiles made with GD or IM, which probably use
only RLE or no compression at all.

[GFX][gif_compress] = 0

*** TRIED THIS WITH "1", AS WELL. BUT IN [im_path_lzw] IT`S STATED TO LEAVE
IT OFF FOR 4.2.9. ***

 
[imagefile_ext] 
Commalist of file extensions perceived as images by TYPO3. List should be
set to 'gif,png,jpeg,jpg' if IM is not available. Lowercase and no spaces
between!

[GFX][imagefile_ext] = gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai


 
[gdlib] 
Boolean. Enables the use of GD.

[GFX][gdlib] = 1


 
[gdlib_png] 
Boolean. Enables the use of GD, with PNG only. This means that all items
normally generated as gif-files will be png-files instead!

[GFX][gdlib_png] = 1

*** IF I SWITCH THIS TO "0" IT OF COURSE GIVES BACK A HEAVY ERROR :-) ***

 
[gdlib_2] 
String/Boolean. Set this if you are using the new GDlib 2.0.1+. If you don't
set this flag and still uses GDlib2, you might encounter strange behaviours
like black images etc. This feature might take effect only if ImageMagick is
installed and working as well! You can also use the value
"no_imagecopyresized_fix" - in that case it will NOT try to fix a known
issue where "imagecopyresized" does not work correctly.

[GFX][gdlib_2] = 1

*** TRIED "0" and "no_imagecopyresized_fix" AS WELL. HOWEVER, DUE TO GD2
(libgd2-xpm) PRESENT, THIS SHOULD BE "1" I GUESS. ***

 
[im] 
Boolean. Enables the use of IM.

[GFX][im] = 1


 
[im_path] 
Path to the IM tools 'convert', 'combine', 'identify'. Version 4.2.9 of
ImageMagick is highly recommended due to features and speed!

[GFX][im_path] = /usr/local/typo3-imagemagick/bin/


 
[im_path_lzw] 
Path to the IM tool 'convert' with LZW enabled! See 'gif_compress'. If your
version 4.2.9 of ImageMagick is compiled with LZW you may leave this field
blank AND disable the flag 'gif_compress'! Tip: You can call LZW 'convert'
with a prefix like 'myver_convert' by setting this path with it, eg.
'/usr/bin/myver_' instead of just '/usr/bin/'.

[GFX][im_path_lzw] = 


 
[im_version_5] 
Boolean. Set this if you're using IM 5+. If this is set, 'im_negate_mask',
'im_no_effects' and 'im_mask_temp_ext_gif' are automatically configured for
use with ImageMagick version 5 +

[GFX][im_version_5] = 0

*** TRIED "1" AS WELL. HOWEVER, DUE TO ONLY (means no other version of) IM
4.2.9 INSTALLED, THIS SHOULD BE "0" I GUESS. ***

 
[im_negate_mask] 
Boolean. Indicates if the mask images should be inverted first. This depends
of the ImageMagick version. Below ver. 5.1 this should be false. Above
ImageMagick version 5.2+ it should be true. Just set the flag if the masks
works opposite the intension!

[GFX][im_negate_mask] = 0

*** TRIED "1" AS WELL. HOWEVER, DUE TO IM 4.2.9 INSTALLED, THIS SHOULD BE
"0" I GUESS. ***

 
[im_imvMaskState] 
Boolean. If set, the 'im_negate_mask' state is inverted. This is very useful
with newer versions of IM5 (at least 5.4.3+) where the 'im_version_5'
setting will set 'im_negate_mask' which will eventually be wrong...
Halleluja for ImageMagick - have I ever regreted using that package...

[GFX][im_imvMaskState] = 0

*** TRIED "1" AS WELL. HOWEVER, DUE TO IM 4.2.9 INSTALLED, THIS SHOULD BE
"0" I GUESS. ***

 
[im_no_effects] 
Boolean. This is necessary if using ImageMagick 5+. Approved version for
using effects is version 4.2.9. Effects in Imagemagick 5+ tends to render
very slowly! Therefore this must be disabled in order not to perform
sharpen, blurring and such. (However lately IM5 is allowed for effects
again, but syntax has changed!)

[GFX][im_no_effects] = 0

*** TRIED "1" AS WELL. HOWEVER, DUE TO IM 4.2.9 INSTALLED, THIS SHOULD BE
"0" I GUESS. ***

 
[im_v5effects] 
Integer -1,0,1. 0=disabled. -1=Do not sharpen images by default. 1=All; blur
and sharpening is allowed in ImageMagick again and the 'im_no_effects' flag
is cancelled. Blurring and sharpening has new syntaxes though. See
class.t3lib_stdgraphic.php for details.

[GFX][im_v5effects] = 0

*** TRIED "1" AS WELL. HOWEVER, DUE TO IM 4.2.9 INSTALLED, THIS SHOULD BE
"0" I GUESS. ***

 
[im_mask_temp_ext_gif] 
Boolean. This should be set if ImageMagick is version 5+. This is used in
class tslib_cObj.php for masking images and the extension png is normally
used because it's faster than gif for temporary files. But png seems not to
work with some IM 5+ versions, so...

[GFX][im_mask_temp_ext_gif] = 0


 
[im_mask_temp_ext_noloss] 
String. Loss-less ImageMagick extension to use for mask processing in
temporary filenames. Normally 'miff' (ImageMagick's OWN format) will do
fine. However at least IM 5.4.9 has proved not to be able to write to its
own file format which forced me to add this option. You can try and set this
to tif/png/jpg if some masking doesn't work the way it should.

[GFX][im_mask_temp_ext_noloss] = miff

*** TRIED "tiff" AS WELL.. ***

 
[im_noScaleUp] 
Boolean. If set, images are not being scaled up if told so (in
t3lib/stdgraphics.php)

[GFX][im_noScaleUp] = 0


 
[im_combine_filename] 
String. Latest ImageMagick versions has changed the name of combine to
composite. Configure here if needed.

[GFX][im_combine_filename] = combine


 
[im_noFramePrepended] 
Boolean. If set, the the [x] frame indicator is NOT prepended to filenames
in stdgraphic. Some IM5+ version didn't work at all with the typical
[0]-prefix, which allow multipage pdf's and animated gif's to be scaled only
for the first frame/page and that seriously cuts down rendering time. Set
this flag only if your ImageMagick version cannot find the files. Notice
that changing this flag causes temporary filenames to change, thus the
server will begin scaling images again which were previously cached.

[GFX][im_noFramePrepended] = 0


 
[enable_typo3temp_db_tracking] 
Boolean. If set, then all files in typo3temp will be logged in a database
table. In addition to being a log of the files with original filenames, it
also serves to secure that the same image is not rendered simultaneously by
two different processes.

[GFX][enable_typo3temp_db_tracking] = 1


 
[TTFLocaleConv] 
String. Enter locale conversion string used to recode input to TrueType
functions. Eg. 'cp1250..UTF-8'. Works ONLY if 'recode' is enabled in PHP.
Depreciated from ver. 3.6.0 of TYPO3. Set up [BE][forceCharset] as strings
are automatically converted from databsae charset to UTF-8.

[GFX][TTFLocaleConv] = 


 
[TTFdpi] 
Integer. Enter how many dpi the FreeType module uses. Freetype1 should be
set to 72. Freetype2 should be set to 96 (otherwise fonts are rendered way
bigger than FreeType1). This works as a global scaling factor for Freetype.

[GFX][TTFdpi] = 96


----------8<------------

 

Thank you all!


Alexander





More information about the TYPO3-debian mailing list