mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(datasheet): allow pdf images
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user