(imageName: string)
| 82 | * Metric computations use this path because lossy cached images bias PSNR. |
| 83 | */ |
| 84 | export async function fetchZipImageRaw(imageName: string): Promise<File | null> { |
| 85 | if (!hasActiveZipArchive()) return null; |
| 86 | |
| 87 | try { |
| 88 | return await extractZipImage(imageName); |
| 89 | } catch (err) { |
| 90 | appLogger.warn(`[ZIP Image] Error extracting raw ${imageName}:`, err); |
| 91 | return null; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Extract a mask from ZIP. |
no test coverage detected