.. include:: /Includes.rst.txt .. index:: TYPO3_CONF_VARS; GFX TYPO3_CONF_VARS GFX .. _typo3ConfVars_gfx: ============================ GFX - graphics configuration ============================ You can test the graphics configuration in module :guilabel:`Environment > Image Processing`. See also :ref:`environment-test-image-processing`. The following configuration variables can be used to configure settings for the handling of images and graphics: The configuration values listed here are keys in the global PHP array :php:`$GLOBALS['TYPO3_CONF_VARS']['GFX']`. This variable can be set in one of the following files: * :ref:`config/system/settings.php ` * :ref:`config/system/additional.php ` .. confval-menu:: :name: globals-typo3-conf-vars-gfx :display: tree :type: .. _typo3ConfVars_gfx_thumbnails: .. confval:: thumbnails :name: globals-typo3-conf-vars-sys-gfx-thumbnails :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails'] :type: bool :Default: true Enables the use of thumbnails in the backend interface. .. index:: TYPO3_CONF_VARS GFX; imagefile_ext .. _typo3ConfVars_gfx_imagefile_ext: .. confval:: imagefile_ext :name: globals-typo3-conf-vars-sys-gfx-imagefile_ext :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] :type: list :Default: 'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg,webp' .. versionadded:: 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. Comma-separated list of file extensions recognized as images by TYPO3. List should be set to :php:`'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! .. _typo3ConfVars_gfx_processor_enabled: .. confval:: processor_enabled :name: globals-typo3-conf-vars-sys-gfx-processor_enabled :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_enabled'] :type: bool :Default: true Enables the use of Image- or GraphicsMagick. .. _typo3ConfVars_gfx_processor_path: .. confval:: processor_path :name: globals-typo3-conf-vars-sys-gfx-processor_path :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_path'] :type: text :Default: '/usr/bin/' Path to the IM tools convert, combine, identify. .. _typo3ConfVars_gfx_processor: .. confval:: processor :name: globals-typo3-conf-vars-sys-gfx-processor :Path: $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. .. _typo3ConfVars_gfx_processor_effects: .. confval:: processor_effects :name: globals-typo3-conf-vars-sys-gfx-processor_effects :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_effects'] :type: bool :Default: false If enabled, apply blur and sharpening in ImageMagick/GraphicsMagick functions .. _typo3ConfVars_gfx_processor_allowUpscaling: .. confval:: processor_allowUpscaling :name: globals-typo3-conf-vars-sys-gfx-processor_allowUpscaling :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_allowUpscaling'] :type: bool :Default: true If set, images can be scaled up if told so (in :php:`\TYPO3\CMS\Core\Imaging\GraphicalFunctions`) .. _typo3ConfVars_gfx_processor_allowFrameSelection: .. confval:: processor_allowFrameSelection :name: globals-typo3-conf-vars-sys-gfx-processor_allowFrameSelection :Path: $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. .. _typo3ConfVars_gfx_processor_stripColorProfileByDefault: .. confval:: processor_stripColorProfileByDefault :name: globals-typo3-conf-vars-sys-gfx-processor_stripColorProfileByDefault :Path: $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. .. _typo3ConfVars_gfx_processor_stripColorProfileCommand: .. confval:: processor_stripColorProfileCommand :name: globals-typo3-conf-vars-sys-gfx-processor_stripColorProfileCommand :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand'] :type: string .. note:: This string-based configuration option has been superseded by :ref:`$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters'] ` for `security reasons `__. This option expected a string of command line parameters. The defined parameters had to be shell-escaped beforehand, while the new option :ref:`typo3ConfVars_gfx_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: .. code-block:: php // Before $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand'] = '+profile \'*\''; // After $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters'] = [ '+profile', '*' ]; .. _typo3ConfVars_gfx_processor_stripColorProfileParameters: .. confval:: processor_stripColorProfileParameters :name: globals-typo3-conf-vars-sys-gfx-processor_stripColorProfileParameters :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileParameters'] :type: array of strings :Default: :php:`['+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 :bash:`-strip` command. See `imagemagick.org `__ for details. .. _typo3ConfVars_gfx_processor_colorspace: .. confval:: processor_colorspace :name: globals-typo3-conf-vars-sys-gfx-processor_colorspace :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_colorspace'] :type: text :Default: '' .. versionchanged:: 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). Specifies the colorspace to use. Defaults to "RGB" when using GraphicsMagick as :ref:`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 .. _typo3ConfVars_gfx_processor_interlace: .. confval:: processor_interlace :name: globals-typo3-conf-vars-sys-gfx-processor_interlace :Path: $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 .. _typo3ConfVars_gfx_jpg_quality: .. confval:: jpg_quality :name: globals-typo3-conf-vars-sys-gfx-jpg_quality :Path: $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) .. versionadded:: 13.0 Lowest quality can be "1". Previously the lowest quality setting was "10". Default JPEG generation quality .. _typo3ConfVars_gfx_webp_quality: .. confval:: webp_quality :name: globals-typo3-conf-vars-sys-gfx-webp_quality :Path: $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" .. versionadded:: 13.0 Default WebP generation quality. Setting the quality to "lossless" is equivalent to `"lossless" compression`_. .. _"lossless" compression: https://developers.google.com/speed/webp/docs/compression#lossless_webp .. _typo3ConfVars_gfx_thumbnails_png: .. confval:: thumbnails_png :name: globals-typo3-conf-vars-sys-gfx-thumbnails_png :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails_png'] .. versionchanged:: 13.0 This setting has been removed. Thumbnails from non-image files (like PDF) are always generated as PNG. .. _typo3ConfVars_gfx_gif_compress: .. confval:: gif_compress :name: globals-typo3-conf-vars-sys-gfx-gif_compress :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['gif_compress'] .. versionchanged:: 13.0 This setting has been removed. .. _typo3ConfVars_gfx_processor_allowTemporaryMasksAsPng: .. confval:: processor_allowTemporaryMasksAsPng :name: globals-typo3-conf-vars-sys-gfx-processor_allowTemporaryMasksAsPng :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_allowTemporaryMasksAsPng'] .. versionchanged:: 13.0 This setting has been removed. Temporarily saved masking images are always saved as PNG files rather than GIF images. .. _typo3ConfVars_gfx_gdlib: .. confval:: gdlib :name: globals-typo3-conf-vars-sys-gfx-gdlib :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'] .. versionchanged:: 13.0 This setting has been removed. GDLib functionality is enabled as soon as relevant `GDLib`_ classes are found. Custom code that relied on :php:`$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']` should instead adopt the simpler check :php:`if (class_exists(\GdImage::class))`. .. _GDLib: https://www.php.net/manual/en/book.image.php .. _typo3ConfVars_gfx_gdlib_png: .. confval:: gdlib_png :name: globals-typo3-conf-vars-sys-gfx-gdlib_png :Path: $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'] .. versionchanged:: 13.0 This setting has been removed. Temporary layers/masks are always saved as PNG files instead of GIF files.