[FEATURE] Add SVG support 22/38422/8
authorFrans Saris <franssaris@gmail.com>
Wed, 1 Apr 2015 20:32:44 +0000 (22:32 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 9 Apr 2015 20:42:46 +0000 (22:42 +0200)
commitee634c4f19d2e2cfc0a8d4376763bd1160301119
tree4be509d465de3c348e56eb11016ae918684d5591
parentda2ca9cb6ab90a3d66b1bf6aaecba51ed2d7a57b
[FEATURE] Add SVG support

Added rendering support for SVG images. When a SVG image is scaled
there is no processed file created but only a sys_file_processedfile
record with the calculated new dimensions.

When a mask or explicit cropping is set for an SVG image a
processed file is created like for all other images.

An extra fallback is added to ImageInfo to determine SVG dimensions when
IM/GM fails.

Resolves: #50136
Releases: master
Change-Id: I9d4e298f0329059e83783a94209c80558ed83e27
Reviewed-on: http://review.typo3.org/38422
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
17 files changed:
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/Utility/IconUtility.php
typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
typo3/sysext/core/Classes/Type/File/ImageInfo.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Feature-50136-AddSVGSupport.rst [new file with mode: 0644]
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/Controller/ShowImageController.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php