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

Re: :scale: for SVG images in HTML builds #12415

Open
tuncbkose opened this issue Jun 6, 2024 · 0 comments
Open

Re: :scale: for SVG images in HTML builds #12415

tuncbkose opened this issue Jun 6, 2024 · 0 comments
Labels
dependencies Pull requests that update a dependency file type:bug

Comments

@tuncbkose
Copy link

Describe the bug

#6696 added :scale: support for SVGs. Since then, the implementation in imagesize has changed to contain a small bug I describe in shibukawa/imagesize_py#64. As a result, the image size is not obtained and scaling is ignored.

I'm creating this issue for the sake of visibility, in case others may encounter the same problem. I don't expect there is much to be done in the sphinx side, so feel free to close it.

How to Reproduce

Obtain an SVG file with single-quoted width/height (for example with dvisvgm). Then try to use the :scale: option

.. image:: example_image.svg
  :scale: 50%

Environment Information

Platform:              linux; (Linux-6.5.0-1023-oem-x86_64-with-glibc2.35)
Python version:        3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0])
Python implementation: CPython
Sphinx version:        5.3.0
Docutils version:      0.17.1
Jinja2 version:        3.1.4

but I don't think `sphinx`/`docutils` versions are relevant in this case.

Sphinx extensions

No response

Additional context

No response

@jayaddison jayaddison added the dependencies Pull requests that update a dependency file label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file type:bug
Projects
None yet
Development

No branches or pull requests

2 participants