Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ declare namespace sharp {
chromaSubsampling?: '4:4:4' | '4:2:0';
}

interface JxlOptions extends OutputOptions {
interface JxlOptions extends OutputOptions, AnimationOptions {
/** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
distance?: number;
/** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
Expand All @@ -1413,7 +1413,7 @@ declare namespace sharp {
decodingTier?: number;
/** Use lossless compression (optional, default false) */
lossless?: boolean;
/** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
/** CPU effort, between 1 (fastest) and 9 (slowest) (optional, default 7) */
effort?: number | undefined;
}

Expand Down
2 changes: 2 additions & 0 deletions test/types/sharp.test-d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ sharp('input.tiff').jxl({ quality: 50 }).toFile('out.jxl');
sharp('input.tiff').jxl({ decodingTier: 4 }).toFile('out.jxl');
sharp('input.tiff').jxl({ lossless: true }).toFile('out.jxl');
sharp('input.tiff').jxl({ effort: 7 }).toFile('out.jxl');
sharp('input.tiff').jxl({ loop: 3 }).toFile('out.jxl');
sharp('input.tiff').jxl({ delay: [100, 200] }).toFile('out.jxl');

// Support webp options
sharp('input.tiff').webp({ minSize: true, mixed: true, exact: true }).toFile('out.webp');
Expand Down
Loading