Skip to content

Commit

Permalink
Do not apply default value for quality
Browse files Browse the repository at this point in the history
Fixes #653
  • Loading branch information
simonihmig committed Sep 19, 2024
1 parent 4ef9d16 commit ab45652
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/build-utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type LqipOptions =

export interface ImageOptions {
w: number[];
quality: number;
quality?: number;
format: OutputImageType[];
[key: string]: unknown;
}
Expand Down
1 change: 0 additions & 1 deletion packages/build-utils/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type { ImageConfig } from 'imagetools-core';
const b64 = baseN.create();

const defaultImageConfig: ImageOptions = {
quality: 80,
w: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// TODO: remove this, needs fixing tests
allowUpscale: 'true',
Expand Down

0 comments on commit ab45652

Please sign in to comment.