Skip to content

Commit

Permalink
wire up .svg images support
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein authored and daavoo committed Nov 20, 2022
1 parent f783afc commit 9757d86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvc_render/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ImageRenderer(Renderer):

SCRIPTS = ""

EXTENSIONS = {".jpg", ".jpeg", ".gif", ".png"}
EXTENSIONS = {".jpg", ".jpeg", ".gif", ".png", ".svg"}

def partial_html(self, html_path=None, **kwargs) -> str:
div_content = []
Expand Down
1 change: 1 addition & 0 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
(".gif", True),
(".jpeg", True),
(".png", True),
(".svg", True),
),
)
def test_matches(extension, matches):
Expand Down
1 change: 1 addition & 0 deletions tests/test_vega.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
(".gif", False),
(".jpeg", False),
(".png", False),
(".svg", False),
),
)
def test_matches(extension, matches):
Expand Down

0 comments on commit 9757d86

Please sign in to comment.