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

Support for PNG via the API #390

Open
retrodaredevil opened this issue Feb 12, 2024 · 1 comment
Open

Support for PNG via the API #390

retrodaredevil opened this issue Feb 12, 2024 · 1 comment

Comments

@retrodaredevil
Copy link

Hi, I'm currently embedding an SVG into a RestructuredText document using this code:

.. image:: https://api.star-history.com/svg?repos=wildmountainfarms/solarthing&type=Date
    :target: https://star-history.com/#wildmountainfarms/solarthing
    :alt: Star History Chart

Putting this in my Sphinx documentation works perfectly for HTML, but is subpar when generating my PDF.
latexpdf does support SVG images, however, it internally renders the SVG to an image via ImageMagick. I've found this to work OK, but an actual image would be better in my particular situation. Plus the resulting PNG doesn't look quite right.

I was hoping for an API to download the PNG image, but replacing svg with png didn't seem to work.

I was wondering if this feature already did exist, will exist, or if there's a reason it doesn't exist. I love SVGs, but I was hoping an additional PNG option could be provided.

@tianzhou
Copy link
Contributor

We currently only support SVG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants