Skip to content

Commit

Permalink
add webp support
Browse files Browse the repository at this point in the history
  • Loading branch information
kviktor committed Jan 16, 2024
1 parent 0e57475 commit e74a9ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_extensions/management/commands/graph_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def render_output_pydot(self, dotdata, **kwargs):
formats = [
'bmp', 'canon', 'cmap', 'cmapx', 'cmapx_np', 'dot', 'dia', 'emf',
'em', 'fplus', 'eps', 'fig', 'gd', 'gd2', 'gif', 'gv', 'imap',
'imap_np', 'ismap', 'jpe', 'jpeg', 'jpg', 'metafile', 'pdf',
'pic', 'plain', 'plain-ext', 'png', 'pov', 'ps', 'ps2', 'svg',
'svgz', 'tif', 'tiff', 'tk', 'vml', 'vmlz', 'vrml', 'wbmp', 'xdot',
'imap_np', 'ismap', 'jpe', 'jpeg', 'jpg', 'metafile', 'pdf', 'pic',
'plain', 'plain-ext', 'png', 'pov', 'ps', 'ps2', 'svg', 'svgz',
'tif', 'tiff', 'tk', 'vml', 'vmlz', 'vrml', 'wbmp', 'webp', 'xdot',
]
ext = output_file[output_file.rfind('.') + 1:]
format_ = ext if ext in formats else 'raw'
Expand Down

0 comments on commit e74a9ca

Please sign in to comment.