Actions
Feature #78590
closedCustom backend logo: width and size for svg files
Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
Start date:
2016-11-07
Due date:
% Done:
100%
Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
Description
Problem/Description¶
getimagesize()
tries to get width and height of an custom backend logo. But that's not possible on svg files as there is no height or width. A custom svg logo is actually rendered without height/width attributes.
I suggest to add support for width/height attributes via the filename. With that change, it's possible to add wide backend logos also with svg file formats.
ToDo(s)¶
- Extend
\TYPO3\CMS\Backend\Controller\BackendController::render()
to check for pattern "w123h123
" in the filename if the custom logo is svg.- Fallback to the default backend logo size of 22x22px if no dimensions are given for the custom svg icon.
- Add Feature rst file
Actions