Skip to content

Commit

Permalink
fix: blur parameter for cloudinary
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBird committed Sep 15, 2023
1 parent 3134f24 commit c01da88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/providers/cloudinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const operationsGenerator = createOperationsGenerator({
colorSpace: 'cs',
customFunc: 'fn',
density: 'dn',
aspectRatio: 'ar'
aspectRatio: 'ar',
blur: 'e_blur'
},
valueMap: {
fit: {
Expand Down Expand Up @@ -73,7 +74,7 @@ const operationsGenerator = createOperationsGenerator({
}
},
joinWith: ',',
formatter: (key, value) => `${key}_${value}`
formatter: (key, value) => key === 'e_blur' ? `${key}:${value}` : `${key}_${value}`
})

const defaultModifiers = {
Expand Down

0 comments on commit c01da88

Please sign in to comment.