Skip to content

Commit eade22e

Browse files
committed
add heic support to export()
1 parent da7c11f commit eade22e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plotdevice/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,8 @@ def export(self, fname, zoom=1.0, fps=None, loop=None, bitrate=1.0, cmyk=False):
14951495
"""
14961496

14971497
# determine the format by normalizing the file extension
1498-
if format not in ('pdf','eps','png','jpg','gif','tiff', 'mov'):
14991498
format = fname.lower().rsplit('.',1)[-1]
1499+
if format not in ('pdf','eps','png','jpg','heic','gif','tiff', 'mov'):
15001500
badform = 'Unknown export format "%s"'%format
15011501
raise DeviceError(badform)
15021502

0 commit comments

Comments
 (0)