feat(app): add image input support and bump to 1.5.0

Allow PNG/JPG/TIFF/BMP/GIF/WebP alongside PDF for preview and DXF conversion.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael-A-SloanandCursor committed 2026-09-03 17:05:17 -04:00
1 parent 19696937df
commit 2c9829ef8c
9 files changed
+88 -28

No files matched your search

+4 -1
View File
@@ -7,9 +7,12 @@ from pathlib import Path
import fitz
from PIL import Image
from app.input_document import open_input_document
def open_document(path: str | Path) -> fitz.Document:
return fitz.open(str(path))
"""Open a supported PDF or image for preview."""
return open_input_document(path)
def page_count(doc: fitz.Document) -> int: