Skip to content

Commit

Permalink
fix(netlify): normalise jpeg format to jpg
Browse files Browse the repository at this point in the history
resolves #1294
  • Loading branch information
danielroe committed Apr 22, 2024
1 parent dad493a commit a59e57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runtime/providers/netlifyImageCdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const operationsGenerator = createOperationsGenerator({
avif: 'avif',
gif: 'gif',
jpg: 'jpg',
jpeg: 'jpg',
png: 'png',
webp: 'webp',
},
Expand Down
2 changes: 1 addition & 1 deletion test/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const images = [
imageengine: { url: '/test.png?imgeng=/w_200/h_200/m_letterbox/f_jpg' },
unsplash: { url: '/test.png?w=200&h=200&fit=fill&fm=jpeg' },
imagekit: { url: '/test.png?tr=w-200,h-200,cm-pad_resize,f-jpeg' },
netlifyImageCdn: { url: '/.netlify/images?w=200&h=200&fit=contain&fm=jpeg&url=%2Ftest.png' },
netlifyImageCdn: { url: '/.netlify/images?w=200&h=200&fit=contain&fm=jpg&url=%2Ftest.png' },
netlifyLargeMedia: { url: '/test.png?w=200&h=200&nf_resize=fit' },
prismic: { url: '/test.png?auto=compress,format&rect=0,0,200,200&w=200&h=200&fit=fill&fm=jpeg' },
sanity: { url: 'https://cdn.sanity.io/images/projectid/production/test-300x450.png?w=200&h=200&fit=fill&fm=jpg&bg=ffffff' },
Expand Down

0 comments on commit a59e57c

Please sign in to comment.