Skip to content

Commit 91445e0

Browse files
committed
refactor: standardize property names for transformation interface and supported transforms
1 parent c96900a commit 91445e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/constants/supportedTransforms.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const supportedTransforms: { [key: string]: string } = {
1010
border: "b",
1111
crop: "c",
1212
cropMode: "cm",
13-
DPR: "dpr",
13+
dpr: "dpr",
1414
focus: "fo",
1515
quality: "q",
1616
x: "x",
@@ -39,6 +39,7 @@ export const supportedTransforms: { [key: string]: string } = {
3939
effectGray: "e-grayscale",
4040
effectShadow: "e-shadow",
4141
effectGradient: "e-gradient",
42+
rotate: "rt",
4243

4344
// AI & advanced effects
4445
grayscale: "e-grayscale",

src/interfaces/Transformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface Transformation {
5555
* Possible values 0.1 to 5 or `auto` for automatic DPR calculation.
5656
* @link https://imagekit.io/docs/image-resize-and-crop#dpr---dpr
5757
*/
58-
DPR?: number
58+
dpr?: number
5959

6060
/**
6161
* This parameter can be used along with pad resize, maintain ratio, or extract crop to change the behavior of padding or cropping

0 commit comments

Comments
 (0)