Project

General

Profile

Actions

Feature #96285

open

SVG in loginLogo is also used in the default email-template. Problem in Outlook.

Added by Mario Wilhelm over 3 years ago. Updated 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Mailer API
Target version:
-
Start date:
2021-12-08
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

In the Typo3 default email template (SystemEmail.html) the login.loginLogo is used.
We often use SVGs for the logo. It works fine in Typo3.
But in default email-template the same logo is used, but it is not visible in Outlook, because Outlook doesn't supports SVG very well.

SystemEmail.html

 <f:image src="{typo3.systemConfiguration.backend.loginLogo}" ... />

Why not add an additional Field login.emailLogo for use of jpg or png only for the email?

OK, I can make my own copy but in the most purposes the default email-template is good. Only with this small issue.


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #75191: Converting svg to png not possible without cropping or masking the imageClosed2016-03-19

Actions
Actions #1

Updated by Mario Lubenka almost 3 years ago

We also noticed this issue and are currently investigating it. :)
I haven't read up on the Outlook specifics yet, but for now I hope embedding the logo works better.

Actions #2

Updated by Mario Lubenka over 2 years ago

In this patchset I embedded the logo into the email template:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/75727

This not sufficient for Outlook though.

A patch allowing to configure a separate logo for use in the email template should be done based off the patchset above.
I'll do that once the patchset has been merged – I don't think I can add it separately.

Actions #3

Updated by Georg Ringer about 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #4

Updated by Sybille Peters 3 months ago

  • Related to Feature #75191: Converting svg to png not possible without cropping or masking the image added
Actions #5

Updated by Sybille Peters 3 months ago

I think it might be useful here to use f:image with fileExtension="png", e.g. like this:

<f:image src="{typo3.systemConfiguration.backend.loginLogo -> core:normalizedUrl()}" alt="Logo" height="41" width="150" fileExtension="png" />

See also https://forge.typo3.org/issues/75191 for more context.

However, I don't know why img is used in the SystemEmail.html layout and not f:image.

I currently have the same problem, that SVGs in emails are not displayed by outlook. (Just embedding them does not solve the problem). I need a solution not just for the system email layout, but for sending emails when the logo is selected by editors, so it can be any supported format.

Using fileExtension="png" with an SVG file worked for me.

Actions #6

Updated by Sybille Peters 3 months ago

It would be nicer if we could just force it to create a scaled image and use the file format which is appropriate.

Actions

Also available in: Atom PDF