GFX - graphics configuration

The following configuration variables can be used to configure settings for the handling of images and graphics:

Note

The configuration values listed here are keys in the global PHP array $GLOBALS['TYPO3_CONF_VARS']['GFX'].

This variable can be set in one of the following files:

thumbnails

$GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails']
Type

bool

Default

true

Enables the use of thumbnails in the backend interface.

imagefile_ext

New in version 13.0: "webp" has been added to the list of default image file extensions.

If the underlying ImageMagick / GraphicsMagick library is not built with WebP support, the server administrators can install or recompile the library with WebP support by installing the "cwebp" or "dwebp" libraries.

$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
Type

list

Default

'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg,webp'

Comma-separated list of file extensions recognized as images by TYPO3. List should be set to 'gif,png,jpeg,jpg,webp', if ImageMagick / GraphicsMagick is not available.

Caution

The file extensions must be in lowercase and there must be no spaces between the commas and the file extensions!

processor_enabled

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_enabled']
Type

bool

Default

true

Enables the use of Image- or GraphicsMagick.

processor_path

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_path']
Type

text

Default

'/usr/bin/'

Path to the IM tools convert, combine, identify.

processor

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor']
Type

dropdown

Default

'ImageMagick'

AllowedValues
ImageMagick

Choose ImageMagick for processing images

GraphicsMagick

Choose GraphicsMagick for processing images

Select which external software on the server should process images - see also the preset functionality to see what is available.

processor_effects

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_effects']
Type

bool

Default

false

If enabled, apply blur and sharpening in ImageMagick/GraphicMagick functions

processor_allowUpscaling

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_allowUpscaling']
Type

bool

Default

true

If set, images can be scaled up if told so (in \TYPO3\CMS\Core\Imaging\GraphicalFunctions)

processor_allowFrameSelection

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_allowFrameSelection']
Type

bool

Default

true

If set, the [x] frame selector is appended to input filenames in stdgraphic. This speeds up image processing for PDF files considerably. Disable if your image processor or environment cant cope with the frame selection.

processor_stripColorProfileByDefault

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileByDefault']
Type

bool

Default

true

If set, the processor_stripColorProfileCommand is used with all processor image operations by default. See tsRef for setting this parameter explicitly for IMAGE generation.

processor_stripColorProfileCommand

Changed in version 11.5.35/12.4.11: This string-based configuration option has been superseded by $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters'] for security reasons.

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand']
Type

string

This option expected a string of command line parameters. The defined parameters had to be shell-escaped beforehand, while the new option processor_stripColorProfileParameters expects an array of strings that will be shell-escaped by TYPO3 when used.

The existing configuration will continue to be supported. Still, it is suggested to use the new configuration format, as the Install Tool is adapted to allow modification of the new configuration option only:

// Before
$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand'] = '+profile \'*\'';

// After
$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters'] = [
    '+profile',
    '*'
];

processor_stripColorProfileParameters

Changed in version 11.5.35/12.4.11.

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters']
Type

array of strings

Default

['+profile', '*']

Specifies the parameters to strip the profile information, which can reduce thumbnail size up to 60KB. Command can differ in IM/GM, IM also knows the -strip command. See imagemagick.org for details.

processor_colorspace

Changed in version 13.0: The setting defaults to an empty value and - if not changed - is adjusted automatically to the recommended colorspace for the given processor ("sRGB" for ImageMagick, "RGB" for GraphicsMagick).

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_colorspace']
Type

text

Default

''

Specifies the colorspace to use. Defaults to "RGB" when using GraphicsMagick as processor and "sRGB" when using ImageMagick.

Note

Images would be rendered darker than the original when using ImageMagick in combination with "RGB".

Possible values: CMY, CMYK, Gray, HCL, HSB, HSL, HWB, Lab, LCH, LMS, Log, Luv, OHTA, Rec601Luma, Rec601YCbCr, Rec709Luma, Rec709YCbCr, RGB, sRGB, Transparent, XYZ, YCbCr, YCC, YIQ, YCbCr, YUV

processor_interlace

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_interlace']
Type

text

Default

'None'

Specifies the interlace option to use. The result differs in different GM / IM versions. See manual of GraphicsMagick or ImageMagick for right option.

Possible values: None, Line, Plane, Partition

jpg_quality

New in version 13.0: Lowest quality can be "1". Previously the lowest quality setting was "10".

$GLOBALS['TYPO3_CONF_VARS']['GFX']['jpg_quality']
Type

int

Default

85

Allowed values

Between 1 (low quality, small file size) and 100 (best quality, large file size)

Default JPEG generation quality

webp_quality

New in version 13.0.

$GLOBALS['TYPO3_CONF_VARS']['GFX']['webp_quality']
Type

int | string

Default

85

Allowed values

Between 1 (low quality, small file size) and 100 (best quality, large file size), or "lossless"

Default WebP generation quality. Setting the quality to "lossless" is equivalent to "lossless" compression.

thumbnails_png

$GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails_png']

Changed in version 13.0: This setting has been removed. Thumbnails from non-image files (like PDF) are always generated as PNG.

gif_compress

$GLOBALS['TYPO3_CONF_VARS']['GFX']['gif_compress']

Changed in version 13.0: This setting has been removed.

processor_allowTemporaryMasksAsPng

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_allowTemporaryMasksAsPng']

Changed in version 13.0: This setting has been removed. Temporarily saved masking images are always saved as PNG files rather than GIF images.

gdlib

$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']

Changed in version 13.0: This setting has been removed. GDLib functionality is enabled as soon as relevant GDLib classes are found.

Custom code that relied on $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'] should instead adopt the simpler check if (class_exists(\GdImage::class)).

gdlib_png

$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png']

Changed in version 13.0: This setting has been removed. Temporary layers/masks are always saved as PNG files instead of GIF files.