Eric the Red
Eric the Red

Reputation: 5454

Scrolling & zooming SVG Viewer on Windows?

We need to view some very large (7200+ pixels) SVGs. Every SVG viewer I've found, including modern web browsers, does not allow us to view the entire image. There aren't any scrollbars, and we do not have the option to zoom.

Is an open source / free application available that could help with viewing the entire SVG image? Thanks!

Upvotes: 13

Views: 8947

Answers (3)

H B
H B

Reputation: 741

If you use a custom css browser extension such as Stylus, you can set up a CSS style for overflow on the root element, which should be <svg>:

:root {
    overflow:auto !important;
}

This is pretty harmless for any html page but you can have it only apply to .svg urls via the url regex filter:

^.*[.]svg$

Now with this in place, opening an svg in a new tab will apply the style and allow you to scroll around. Zooming in and out should automatically adjust scrollbars.

Upvotes: 0

Spadar Shut
Spadar Shut

Reputation: 15807

You need to add viewBox attribute to the <svg> element and wievers will scale the image to the available viewport.

<svg viewBox='0 0 7200 7200' ... >

You may want to try Opera SVG Viewer to preview multiple svg files at once.

Upvotes: 3

Matthew Talbert
Matthew Talbert

Reputation: 6048

If you really do mean SVG, Inkscape should work.

Upvotes: 10

Related Questions