Skip to content

Commit 879e057

Browse files
committed
feat: add layer mode support in overlay transformations and update URL generation tests
- Enhanced the `processOverlay` function to include a new `layerMode` property for overlays. - Updated the URL generation tests to include new transformation parameters such as `aiEdit`, `colorReplace`, and `distort`. - Added comprehensive tests for various layer modes (multiply, cutter, cutout, displace) to ensure correct URL generation.
1 parent 211f031 commit 879e057

File tree

5 files changed

+651
-396
lines changed

5 files changed

+651
-396
lines changed

src/constants/supportedTransforms.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,16 @@ export const supportedTransforms: { [key: string]: string } = {
3939
aiVariation: "e-genvar",
4040
aiDropShadow: "e-dropshadow",
4141
aiChangeBackground: "e-changebg",
42+
aiEdit: "e-edit",
4243
aiRemoveBackground: "e-bgremove",
4344
aiRemoveBackgroundExternal: "e-removedotbg",
4445
contrastStretch: "e-contrast",
4546
shadow: "e-shadow",
4647
sharpen: "e-sharpen",
4748
unsharpMask: "e-usm",
4849
gradient: "e-gradient",
50+
colorReplace: "cr",
51+
distort: "e-distort",
4952

5053
// Other flags & finishing
5154
progressive: "pr",
@@ -56,6 +59,7 @@ export const supportedTransforms: { [key: string]: string } = {
5659
trim: "t",
5760
zoom: "z",
5861
page: "pg",
62+
layerMode: "lm",
5963

6064
// Text overlay transformations which are not defined yet
6165
fontSize: "fs",

0 commit comments

Comments
 (0)