-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsupportedTransforms.ts
More file actions
75 lines (68 loc) · 1.46 KB
/
supportedTransforms.ts
File metadata and controls
75 lines (68 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/**
* {@link https://imagekit.io/docs/transformations}
*/
export const supportedTransforms: { [key: string]: string } = {
// Basic sizing & layout
width: "w",
height: "h",
aspectRatio: "ar",
background: "bg",
border: "b",
crop: "c",
cropMode: "cm",
dpr: "dpr",
focus: "fo",
quality: "q",
x: "x",
xCenter: "xc",
y: "y",
yCenter: "yc",
format: "f",
videoCodec: "vc",
audioCodec: "ac",
radius: "r",
rotation: "rt",
blur: "bl",
named: "n",
defaultImage: "di",
flip: "fl",
original: "orig",
startOffset: "so",
endOffset: "eo",
duration: "du",
streamingResolutions: "sr",
// Old deprecated mappings
effectSharpen: "e-sharpen",
effectUSM: "e-usm",
effectContrast: "e-contrast",
effectGray: "e-grayscale",
effectShadow: "e-shadow",
effectGradient: "e-gradient",
rotate: "rt",
// AI & advanced effects
grayscale: "e-grayscale",
aiBGRemoveExternal: "e-removedotbg",
aiUpscale: "e-upscale",
aiRetouch: "e-retouch",
aiVariation: "e-genvar",
aiDropShadow: "e-dropshadow",
aiChangeBackground: "e-changebg",
aiRemoveBackground: "e-bgremove",
contrastStretch: "e-contrast",
shadow: "e-shadow",
sharpen: "e-sharpen",
unsharpMask: "e-usm",
gradient: "e-gradient",
// Other flags & finishing
progressive: "pr",
lossless: "lo",
colorProfile: "cp",
metadata: "md",
opacity: "o",
trim: "t",
zoom: "z",
page: "pg",
// Raw pass-through
raw: "raw",
};
export default supportedTransforms