propagate default dpi=72 and PDF to images cap = 1800 (30m)
This commit is contained in:
@@ -107,7 +107,7 @@ def render_pdf_to_images(
|
||||
pdf_path: Path,
|
||||
out_dir: Path,
|
||||
*,
|
||||
dpi: int = 180,
|
||||
dpi: int = 72,
|
||||
image_format: str = "png",
|
||||
timeout_s: int = 120,
|
||||
total_pages: int | None = None,
|
||||
@@ -254,10 +254,10 @@ def convert_pptx_to_slidedeck(
|
||||
pptx_path: Path,
|
||||
work_dir: Path,
|
||||
*,
|
||||
dpi: int = 180,
|
||||
dpi: int = 72,
|
||||
image_format: str = "png",
|
||||
pptx_to_pdf_timeout_s: int = 180,
|
||||
pdf_to_images_timeout_s: int = 600,
|
||||
pdf_to_images_timeout_s: int = 1800,
|
||||
pptx_to_pdf_base_timeout_s: int = 45,
|
||||
pptx_to_pdf_per_slide_timeout_s: int = 3,
|
||||
pdf_to_images_base_timeout_s: int = 30,
|
||||
|
||||
@@ -40,7 +40,7 @@ def load_server_config() -> ServerConfig:
|
||||
os.getenv("CONVERSION_PPTX_TO_PDF_TIMEOUT_SECONDS", "180")
|
||||
),
|
||||
conversion_pdf_to_images_timeout_seconds=int(
|
||||
os.getenv("CONVERSION_PDF_TO_IMAGES_TIMEOUT_SECONDS", "600")
|
||||
os.getenv("CONVERSION_PDF_TO_IMAGES_TIMEOUT_SECONDS", "1800")
|
||||
),
|
||||
conversion_pptx_to_pdf_base_timeout_seconds=int(
|
||||
os.getenv("CONVERSION_PPTX_TO_PDF_BASE_TIMEOUT_SECONDS", "45")
|
||||
|
||||
Reference in New Issue
Block a user