Skip to content

Commit

Permalink
fix(cloudinary): use jpg instead of jpeg (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored May 10, 2021
1 parent a156c66 commit 7d49fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/runtime/providers/cloudinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const operationsGenerator = createOperationsGenerator({
cropping: 'crop',
coverLimit: 'limit'
},
format: {
jpeg: 'jpg'
},
background (value: string) {
return convertHextoRGBFormat(value)
},
Expand Down
2 changes: 1 addition & 1 deletion test/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const images = [
{
args: ['/test.png', { width: 200, height: 200, fit: 'contain', format: 'jpeg' }],
ipx: { url: '/_ipx/test.png?fit=contain&f=jpeg&s=200_200' },
cloudinary: { url: '/f_jpeg,q_auto,w_200,h_200,c_scale/test' },
cloudinary: { url: '/f_jpg,q_auto,w_200,h_200,c_scale/test' },
twicpics: { url: '/test.png?twic=v1/output=jpeg/contain=200x200' },
fastly: { url: '/test.png?width=200&height=200&fit=bounds&format=jpeg' },
imgix: { url: '/test.png?w=200&h=200&fit=fill&fm=jpeg' },
Expand Down

0 comments on commit 7d49fa8

Please sign in to comment.