[FEATURE] Allow svg files as image format for extension icons 72/32372/7
authorIngo Pfennigstorf <i.pfennigstorf@gmail.com>
Tue, 26 Aug 2014 08:47:51 +0000 (10:47 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 2 Oct 2014 15:06:04 +0000 (17:06 +0200)
This adds the possibility to add extension icons in svg format.

Resolves: #61185
Releases: 6.3
Change-Id: I52463b8a26b19da17ccdcead3f82864719bace50
Reviewed-on: http://review.typo3.org/32372
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Documentation/Changelog/master/Feature-61185-AllowSvgAsExtensionIcon.rst [new file with mode: 0644]

index 4a83649..0566e31 100644 (file)
@@ -1472,7 +1472,7 @@ tt_content.' . $key . $prefix . ' {
         */
        static public function getExtensionIcon($extensionPath, $returnFullPath = FALSE) {
                $icon = '';
-               $iconFileTypesToCheckFor = array('png', 'gif');
+               $iconFileTypesToCheckFor = array('png', 'svg', 'gif');
                foreach ($iconFileTypesToCheckFor as $fileType) {
                        if (file_exists($extensionPath . 'ext_icon.' . $fileType)) {
                                $icon = 'ext_icon.' . $fileType;
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-61185-AllowSvgAsExtensionIcon.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-61185-AllowSvgAsExtensionIcon.rst
new file mode 100644 (file)
index 0000000..5da7072
--- /dev/null
@@ -0,0 +1,14 @@
+===================================================
+Feature: #66185 - Allow Svg Files as Extension icon
+===================================================
+
+Description
+===========
+
+Extension authors can ship Extensions with an ext_icon file with the suffixes .png, .svg and .gif.
+
+
+Impact
+======
+
+Extension icons might be rendered better when provided as vector graphics and not as bitmaps.