mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add JXL to all tool format selectors, expand convert with BMP/ICO/JP2/QOI, add server-side editor export
This commit is contained in:
@@ -39,6 +39,8 @@ export async function optimizeForWeb(image: Sharp, options: OptimizeForWebOption
|
||||
return pipeline.avif({ quality, effort: 4 });
|
||||
case "png":
|
||||
return pipeline.png({ compressionLevel: 9, palette: true });
|
||||
case "jxl":
|
||||
return pipeline.jxl({ quality, effort: 7 });
|
||||
default:
|
||||
throw new Error(`Unsupported format: ${format}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user