feat(datasheet): allow pdf images

This commit is contained in:
Boundary Effect
2023-09-09 00:11:51 +02:00
parent 389d181cbb
commit 8717325500
+1 -1
View File
@@ -381,7 +381,7 @@ class Project():
if not picture: if not picture:
return return
extension = os.path.splitext(picture)[1] extension = os.path.splitext(picture)[1]
supported_extensions = ['.png', '.jpg', '.jpeg', '.svg'] supported_extensions = ['.png', '.jpg', '.jpeg', '.svg', '.pdf']
if not os.path.exists(picture): if not os.path.exists(picture):
logging.warning(f"Picture file '{picture}' not found in repo, skipping") logging.warning(f"Picture file '{picture}' not found in repo, skipping")
elif extension not in supported_extensions: elif extension not in supported_extensions: