fix(image-pipeline): make preview histogram opt-in

This commit is contained in:
Matthias
2026-04-04 11:47:04 +02:00
parent 4fa517066f
commit b650485e81
8 changed files with 312 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ type PreviewWorkerPayload = {
sourceUrl: string;
steps: readonly PipelineStep[];
previewWidth: number;
includeHistogram?: boolean;
};
type WorkerRequestMessage =
@@ -261,6 +262,7 @@ export async function renderPreviewWithWorkerFallback(options: {
sourceUrl: string;
steps: readonly PipelineStep[];
previewWidth: number;
includeHistogram?: boolean;
signal?: AbortSignal;
}): Promise<PreviewRenderResult> {
try {
@@ -270,6 +272,7 @@ export async function renderPreviewWithWorkerFallback(options: {
sourceUrl: options.sourceUrl,
steps: options.steps,
previewWidth: options.previewWidth,
includeHistogram: options.includeHistogram,
},
signal: options.signal,
});