Huge logo in email sent by Nextcloud

In emails sent with notifications from our cloud has a huge logo that takes up the more than the whole screen. The logo is an SVG-file, though I’m think I uploaded it as an PNG.

It seems like it is set to (width: 13.7604in; height: 13.8958in;) somewhere, which means that it is huge.

Why is it set to be that large, and is there a way to change it?

This is the template line from the email logo from lib/private/Mail/EMailTemplate.php (Line 123):

<img class="logo float-center" src="%s" alt="%s" align="center" style="-ms-interpolation-mode:bicubic;clear:both;display:block;float:none;margin:0 auto;outline:0;text-align:center;text-decoration:none;max-height:105px;max-width:105px;width:auto;height:auto">

As you can see, the logo size should normaly be max-height:105px;max-width:105px; unless you are using a custom theme/theming or custom css.

You should look into the raw email and search for "logo float-center" and compare, if it differs from the template above, then you should look/search, what’s the cause of those changes.

Cood it be, that you uploaded a logo that already was to large?

I’m probably not the right man to help you, I’m just poking around a bit, but maybe it can help you anyway to find the cause…

much luck!

Thanks for your help. Yes, it seems that my Nextcloud isn’t using the default template. Maybe something set up by the provider then, I’ll have to ask them.

1 Like