Skip to content

Commit

Permalink
comment about default quality
Browse files Browse the repository at this point in the history
  • Loading branch information
james-elicx committed Jul 3, 2023
1 parent dea749a commit 67c69f2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export function getResizingProperties(

const rawUrl = searchParams.get('url');
const width = Number.parseInt(searchParams.get('w') ?? '', 10);
// 75 is the default quality - https://nextjs.org/docs/app/api-reference/components/image#quality
const quality = Number.parseInt(searchParams.get('q') ?? '75', 10);

if (!rawUrl || Number.isNaN(width) || Number.isNaN(quality)) return undefined;
Expand Down

0 comments on commit 67c69f2

Please sign in to comment.