Categories

Save SVG v0.2.3

  • rating
  • rating
  • rating
  • rating
  • rating
5.00 (1 reviews)
Save inline SVG images

This simple extension allows you to right click and save inline SVG images.

The context menu item will be present always, but it will do nothing unless there is an SVG image. This is due to the permissions model for extensions, where checking for the presence of an SVG would require far more invasive permissions.

SVG images can be placed on web pages in one of two ways: as an image or inline. Inline SVG is where the SVG code is included in the HTML directly, rather than using <img> tags. Ordinarily, downloading inline SVG images is a little awkward. It involves opening developer tools. This extension allows you to download them from the context menu.

Right now, this only works for SVG images that are standalone. Inline SVG in HTML can include features that will break when the image is saved. In particular, this includes references outside of the SVG, including CSS style rules, images, and SVG elements. These are rarely used in practice, because it makes authoring awkward. If an image uses these features it will not be saved correctly.

This extension uses "activeTab", "contextMenus", and "menus", and "scripting" permissions for reasons that should be fairly obvious.

Tags: download