[mail] Replace logo with SVG #2167

Open
opened 2026-03-22 13:56:50 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @vikunja-bot on GitHub (Apr 1, 2025).

Original issue by dpschen on 2023-04-06T10:42:33.000Z

Reason

So that it isn't blurry on high dpi devices, like mobile.

Original issue on Gitea


@kolaente commented on 2023-04-06T11:42:52.000Z:

What about mail software support for this? IIRC quite a few clients don't support svg because you could embed code in them.


@kolaente commented on 2023-04-06T11:43:32.000Z:

Relevant discussion: https://github.com/go-vikunja/api/issues/25#issuecomment-1083626778


dpschen commented on 2023-04-06T13:07:51.000Z:

Well true: https://www.caniemail.com/features/image-svg/

EDIT:

Correcting: There is a valid workaround, see https://css-tricks.com/a-guide-on-svg-support-in-email/#aa-image-tag-with-css-hack. I wouldn't even call it a hack. It's totally valid if it works.

<img src="my-image.jpg" 
     alt="A pair of flat black dice, one on 5 and one on 3" 
     srcset="my-image.svg"
/>

@kolaente commented on 2023-04-06T14:01:19.000Z:

There is a valid workaround

Can we test this somehow? And wouldn't that mean we'll have to embed two images all the time?


dpschen commented on 2023-04-11T12:07:58.000Z:

Can we test this somehow?

I guess only by sending this out to an actual account.

And wouldn't that mean we'll have to embed two images all the time?

Yes. If compressed the overhead of the logo as SVG shouldn't be that large.


phelex commented on 2023-05-09T12:48:16.000Z:

at least for macOS and iOS I'd inline the svg, since both will initially not load <img> source

Originally created by @vikunja-bot on GitHub (Apr 1, 2025). _Original issue by dpschen on 2023-04-06T10:42:33.000Z_ ### Reason So that it isn't blurry on high dpi devices, like mobile. [Original issue on Gitea](https://kolaente.dev/vikunja/vikunja/issues/1478) --- _**@kolaente** commented on 2023-04-06T11:42:52.000Z_: What about mail software support for this? IIRC quite a few clients don't support svg because you could embed code in them. --- _**@kolaente** commented on 2023-04-06T11:43:32.000Z_: Relevant discussion: https://github.com/go-vikunja/api/issues/25#issuecomment-1083626778 --- _**dpschen** commented on 2023-04-06T13:07:51.000Z_: Well true: https://www.caniemail.com/features/image-svg/ **EDIT:** Correcting: There is a valid workaround, see https://css-tricks.com/a-guide-on-svg-support-in-email/#aa-image-tag-with-css-hack. I wouldn't even call it a hack. It's totally valid if it works. ```html <img src="my-image.jpg" alt="A pair of flat black dice, one on 5 and one on 3" srcset="my-image.svg" /> ``` --- _**@kolaente** commented on 2023-04-06T14:01:19.000Z_: > There is a valid workaround Can we test this somehow? And wouldn't that mean we'll have to embed two images all the time? --- _**dpschen** commented on 2023-04-11T12:07:58.000Z_: > Can we test this somehow? I guess only by sending this out to an actual account. > And wouldn't that mean we'll have to embed two images all the time? Yes. If compressed the overhead of the logo as SVG shouldn't be that large. --- _**phelex** commented on 2023-05-09T12:48:16.000Z_: at least for macOS and iOS I'd inline the svg, since both will initially not load `<img>` source
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#2167