Project

General

Profile

Actions

Feature #78590

closed

Custom backend logo: width and size for svg files

Added by Josef Glatz over 7 years ago. Updated over 6 years ago.

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #78600: Replace getimagesize() by \TYPO3\CMS\Core\Type\File\ImageInfo()ClosedMarkus Klein2016-11-07

Actions
Actions

Also available in: Atom PDF