File tree Expand file tree Collapse file tree
Resources/views/Mailer/Default Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,8 +230,9 @@ public function getAssetBase64Encoded(string $path): string
230230 */
231231 public function getPreferredLogoUrl (string $ type = 'header ' , bool $ absoluteUrl = false ): string
232232 {
233+ // For e-mails, prefer PNG only (Gmail often blocks SVG rendering in emails).
233234 $ candidates = 'email ' === $ type
234- ? ['images/email-logo.svg ' , 'images/email -logo.png ' ]
235+ ? ['images/email-logo.png ' , 'images/header -logo.png ' ]
235236 : ['images/header-logo.svg ' , 'images/header-logo.png ' ];
236237
237238 foreach ($ candidates as $ relPath ) {
Original file line number Diff line number Diff line change 22 {% set src = theme_logo(' email' , true ) %}
33 {% if not src %}
44 {% set candidates = [
5- ' images/email-logo.svg' ,
65 ' images/email-logo.png' ,
7- ' images/header-logo.svg' ,
86 ' images/header-logo.png'
97 ] %}
108 {% for c in candidates %}
You can’t perform that action at this time.
0 commit comments