Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for images embedded in HTML #361

Merged
merged 8 commits into from
Sep 19, 2024
Merged

Add support for images embedded in HTML #361

merged 8 commits into from
Sep 19, 2024

Conversation

Toflar
Copy link
Member

@Toflar Toflar commented Sep 17, 2024

See #319.

Toflar added 5 commits May 2, 2024 16:12
# Conflicts:
#	tests/Token/TokenTest.php
#	tests/Util/FileUploadNormalizerTest.php
# Conflicts:
#	tests/EventListener/AdminEmailTokenListenerTest.php
@Toflar Toflar changed the base branch from main to 2.1 September 17, 2024 12:13
@Toflar Toflar self-assigned this Sep 17, 2024
@Toflar Toflar added this to the 2.1 milestone Sep 17, 2024
@contaoacademy
Copy link
Contributor

I have tested the branch.

It worked correctly with a PNG image.

When I used an SVG image, nothing was displayed. But this could also be due to the gmail-client. I have not checked this any further.

screen-20240919_U1vhzWby

@contaoacademy
Copy link
Contributor

Here is the source code for an SVG graphic

screen-20240919_QpZv9Edi

@Toflar
Copy link
Member Author

Toflar commented Sep 19, 2024

That's because we don't extract .svg files. You can test by adding it to the regex here: https://github.com/terminal42/contao-notification_center/pull/361/files#diff-abca0b3ebb3a76489fc7f2aae9712cf66d30f6248f9983717321a84ab3f250d6R337 (e.g. by turning png|gif|bmp into png|gif|svg|bmp).

But I have no clue if that is supported by mail clients.

@fritzmg
Copy link
Collaborator

fritzmg commented Sep 19, 2024

A quick Google search says no.

@contaoacademy
Copy link
Contributor

Are further tests necessary? SVG makes no sense as Fritz writes. So I would consider the feature ok.

@Toflar Toflar merged commit d768b3a into 2.1 Sep 19, 2024
8 checks passed
@Toflar Toflar deleted the feature/embed-images branch September 19, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants