SVGs are often constructed to be scaled up and down to various sizes, and since SVGs are a primarily vector format, they can be scaled up and down without quality loss. Many of these SVG files are constructed w/o consideration of the viewbox dimensions. Some are tiny, and some are massive. When they are rendered on a site, these intrinsic dimensions don't matter much, as they are almost always resized for the layout context (e.g. svg { width: 100%; }).
How does this affect Lightbox? When using SVGs with Lightbox, we are seeing some files render very tiny. This is because of their small intrinsic dimensions.
To resolve this issue, when an SVG is loaded in Lightbox, rather than reading the width and height, we max out the image in the viewport.
SVGs are often constructed to be scaled up and down to various sizes, and since SVGs are a primarily vector format, they can be scaled up and down without quality loss. Many of these SVG files are constructed w/o consideration of the viewbox dimensions. Some are tiny, and some are massive. When they are rendered on a site, these intrinsic dimensions don't matter much, as they are almost always resized for the layout context (e.g. svg { width: 100%; }).
How does this affect Lightbox? When using SVGs with Lightbox, we are seeing some files render very tiny. This is because of their small intrinsic dimensions.![image](https://user-images.githubusercontent.com/51469/86504366-4e89e900-bd6c-11ea-8159-6cc3ed060ae0.png)
To resolve this issue, when an SVG is loaded in Lightbox, rather than reading the width and height, we max out the image in the viewport.
https://github.com/lokesh/lightbox2/issues/681
@davidc Considering this update to resolve your issue.