Skip to content

Commit e6c869a

Browse files
committed
Fix crashing when loading .svg images
1 parent 6d8a3da commit e6c869a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

anylabeling/views/labeling/label_widget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,6 +2525,7 @@ def scan_all_images(self, folder_path):
25252525
extensions = [
25262526
f".{fmt.data().decode().lower()}"
25272527
for fmt in QtGui.QImageReader.supportedImageFormats()
2528+
if fmt.data().decode().lower() != "svg"
25282529
]
25292530

25302531
images = []

0 commit comments

Comments
 (0)