We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have my include as .. figure:: foo.* which I want to be expanded to "svgz", but it does not. I got the error:
.. figure:: foo.*
None:None: WARNING: no matching candidate for image URI u'foo.*'
However on visit_image in sphinx/writers/html.py I have this:
visit_image
sphinx/writers/html.py
if uri.lower().endswith('svg') or uri.lower().endswith('svgz'):
From the mime_suffixes in sphinx/util/images.py the svgz extension is missing:
sphinx/util/images.py
svgz
mime_suffixes = { '.pdf': 'application/pdf', '.svg': 'image/svg+xml', }
The text was updated successfully, but these errors were encountered:
I don't know this is a bug or feature enhancement. But certainly it is very inconvenience if we can't use .svgz files to images.
.svgz
So I'd like to add .svgz support into 1.5-release branch as a bug. @shimizukawa how do you think?
Note: W3C says mime-type for .svgz is "image/svg+xml". https://www.w3.org/TR/SVG/intro.html#MIMEType
And the our documentation also says HTML builders supports "image/svg+xml".
supported_image_types = ['image/svg+xml', 'image/png', 'image/gif', 'image/jpeg'] http://www.sphinx-doc.org/en/1.4.8/builders.html#sphinx.builders.html.StandaloneHTMLBuilder
It's not too much to say that this is a bug :-)
Sorry, something went wrong.
+1 for including to 1.5-release
Fix #3128: globing images does not support .svgz file
b799249
Fixed at b799249. Thank you for reporting
No branches or pull requests
I have my include as
.. figure:: foo.*
which I want to be expanded to "svgz", but it does not. I got the error:However on
visit_image
insphinx/writers/html.py
I have this:From the mime_suffixes in
sphinx/util/images.py
thesvgz
extension is missing:The text was updated successfully, but these errors were encountered: