Feature #81396
closedChange preferred file format of ext_icon from .png to .svg
100%
Description
If you have an extension that is compatible with < 7.0 you are forced to use an png/gif icon for your extension although newer TYPO3 version also support svg images.
Older versions only support png/gif for icons so you have to provide one if it should be displayed in the extension manager. For > TYPO3 7.0 a svg version should be preferred. You could provide both in your extension but if a .png is found it will be preferred due to the implementation.
$iconFileTypesToCheckFor = array('png', 'svg', 'gif');
foreach ($iconFileTypesToCheckFor as $fileType) {
if (file_exists($extensionPath . 'ext_icon.' . $fileType)) {
$icon = 'ext_icon.' . $fileType;
break;
}
}
The order of preference for icon formats is therefore png > svg > gif. My issue is that the correct order should be svg > png > gif since a scalable vector icon is superior at this small scale. Changing the preferred order would allow to provide a svg for new TYPO3 versions and a png for legacy support.
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53002
Updated by Georg Ringer over 7 years ago
- Related to Feature #77349: Allow additional paths for extension icons added
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53017
Updated by Georg Ringer over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6c153b27cf30c7467ef6e1e07d1e6131eaa74184.