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
Large images won't render #22
Comments
Currently the images seem to be rendered with:
but would it not make more sense to render with:
? |
Basically this comes down to https://phabricator.wikimedia.org/T199737#6366134 Mediawiki fails to find the size of the SVG if it's file size is large enough. |
Drawio seems to add a |
Work around fixes mgeb#22 by letting browsers size this image, not using the zero'd out value of width once the diagram fails to fetch.
If the SVG file is of a size larger than $wgSVGMetadataCutoff (256KB) then fetching the nominal image dimensions fails.
The SVG is still served to the browser, but hidden due to max-width being set to 0px, is there some way to make the img element a sensible size without this server data?
The text was updated successfully, but these errors were encountered: