Issue Bug Closed

#77190ImageMainpulation for SVG only scales but does not crop

Sebastian Müller 07/21/16, 10:28 updated 07/09/24, 12:00

Description

If image is uploaded, ImageManipulation button is displayed for all types defined in $GLOBALS[‘TYPO3_CONF_VARS’][‘GFX’][‘imagefile_ext’].

Text shown beside is:
Image manipulation is only available for supported types:
GIF, JPG, JPEG, TIF, TIFF, BMP, PCX, TGA, PNG, PDF, AI, SVG

When manipulating SVG, svg just gets an width and height property and therefore is scaled down in FE. (Could also be archived by Appearance -> Media Adjustments -> width/height). * Calculate new dimensions for SVG image * No cropping, if cropped info present image is scaled down

Wouldn’t it be better if button is not displayed for PDF, AI and SVG and text shown next to button does not list $GLOBALS[‘TYPO3_CONF_VARS’][‘GFX’][‘imagefile_ext’] as “Image manipulation supported types” but something only listing supported types?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.