{"message":"High-Resolution Image Generation Pipeline v3.0 (MASSIVELY PARALLEL)","description":"Upload PDF → Get 600 DPI tiled images optimized for LLM vision analysis","docs":"/docs","version":"3.0.0","architecture":"MASSIVELY PARALLEL","pipeline":{"step_1":"PDF → 600 DPI PNG images (streaming, one page at a time)","step_2":"Preprocess + Classify ALL pages in parallel (ProcessPoolExecutor)","step_3":"Tile ALL pages in parallel (ProcessPoolExecutor + ThreadPoolExecutor)"},"tech_stack":{"rasterizer":"Poppler (pdf2image) - 600 DPI, streaming conversion","preprocessing":"OpenCV (fastNlMeansDenoising + CLAHE + sharpening)","tiling":"Intelligent tiling with overlap, blank detection, RGB conversion","parallelization":"ProcessPoolExecutor (CPU-bound) + ThreadPoolExecutor (I/O-bound)"},"optimizations":{"streaming_conversion":"One page at a time prevents RAM exhaustion","parallel_preprocessing":"All pages preprocess simultaneously (ProcessPoolExecutor)","parallel_tiling":"All pages tile simultaneously (ProcessPoolExecutor)","parallel_tile_writes":"200+ tiles write simultaneously per page (ThreadPoolExecutor)","fast_blank_detection":"Sample every 4th pixel for 16x speedup","thread_limits":"OMP_THREAD_LIMIT=1 prevents thrashing"},"performance":{"target_1_page":"~25 seconds","target_10_pages":"~45 seconds","target_50_pages":"~90 seconds","target_100_pages":"~2-3 minutes","speedup":"60-100x faster than sequential processing"}}