Issue Feature Closed

#78590Custom backend logo: width and size for svg files

Josef Glatz 11/07/16, 13:02 updated 10/17/17, 23:24

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 22×22px if no dimensions are given for the custom svg icon.
  • Add Feature rst file

Reviews 3