Skip to content

Conversation

@adorilson
Copy link
Contributor

@adorilson adorilson commented Oct 6, 2025

gh-139588: Add sphinx.ext.imgconvert to support SVG on Latex

It converts the SVG to PNG for LaTeX, but keeps SVG for HTML.


📚 Documentation preview 📚: https://cpython-previews--139635.org.readthedocs.build/

@StanFromIreland StanFromIreland changed the title Doc: Add sphinx.ext.imgconvert to support SVG on Latex gh-139588: Add sphinx.ext.imgconvert to support SVG on Latex Oct 6, 2025
@StanFromIreland
Copy link
Member

In the future, can you please add the issue number to the title like you have in the description.

@m-aciek
Copy link
Contributor

m-aciek commented Oct 16, 2025

@adorilson could you please share a screenshot of the PDF page with the diagram rendered?

@adorilson
Copy link
Contributor Author

@adorilson could you please share a screenshot of the PDF page with the diagram rendered?

44% zoom
image

100% zoom

image

@StanFromIreland
Copy link
Member

That looks like a significant degradation of image quality, although it could be due to GH’s compression, can you please confirm?

@adorilson
Copy link
Contributor Author

That looks like a significant degradation of image quality, although it could be due to GH’s compression, can you please confirm?

Yes. There is a significant degradation of image quality.

I think it is the cons put by @m-aciek on the options table: #139588 (comment)

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