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

SVG images aren't displayed correctly #2893

Open
1 task done
harmin-parra opened this issue Feb 22, 2025 · 2 comments
Open
1 task done

SVG images aren't displayed correctly #2893

harmin-parra opened this issue Feb 22, 2025 · 2 comments
Labels
triage type:bug Something isn't working

Comments

@harmin-parra
Copy link

Describe the Bug

The report contains SVG images (in XML format)

They aren't correctly displayed when using the serve command option
allure serve
Image

They got correctly displayed when generating the report in a single page
allure generate --single-file
Image

Steps to Reproduce

Create a python pytest test and attach 2 SVG files to the Allure report

def test_svf():
    allure.attach.file("file.svg", name="comment")
    allure.attach.file("file2.svg", name="comment")

Generate the report with
allure serve

Expected Behaviour

The SVG images are correctly displayed

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-python

What version of Allure Integration you are using?

2.13.5

What version of Allure Report you are using?

2.32.2

Code of Conduct

  • I agree to follow this project's Code of Conduct
@harmin-parra harmin-parra added triage type:bug Something isn't working labels Feb 22, 2025
@harmin-parra
Copy link
Author

Sample SVG files:

Image
Image

@noomorph
Copy link
Contributor

Are you using correct mimetypes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants