One-call automatic correction: runs presets.auto (automatic stretch and light sharpening) and returns the output options.output asks for, as Pipeline.run does.
options.output
Optional
const fixed = await autoEnhance(file, { output: 'blob', type: 'image/jpeg', quality: 0.9 }); Copy
const fixed = await autoEnhance(file, { output: 'blob', type: 'image/jpeg', quality: 0.9 });
One-call automatic correction: runs presets.auto (automatic stretch and light sharpening) and returns the output
options.outputasks for, as Pipeline.run does.