Skip to content

Commit a86f515

Browse files
committed
feat: add background and gradient properties to SolidColorOverlayTransformation type
1 parent 2575dc4 commit a86f515

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/interfaces/Transformation.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,4 +720,19 @@ export type SolidColorOverlayTransformation = Pick<Transformation, "width" | "he
720720
* Specifies the transparency level of the overlaid solid color layer. Supports integers from `1` to `9`.
721721
*/
722722
alpha?: number;
723+
724+
/**
725+
* Specifies the background color of the solid color overlay.
726+
* Accepts an RGB hex code, an RGBA code, or a color name.
727+
*/
728+
background?: string;
729+
730+
/**
731+
* Only works if base asset is an image.
732+
*
733+
* Creates a linear gradient with two colors. Pass `true` for a default gradient, or provide a string for a custom gradient.
734+
*
735+
* [Effects and Enhancements - Gradient](https://imagekit.io/docs/effects-and-enhancements#gradient---e-gradient)
736+
*/
737+
gradient?: Transformation["gradient"]
723738
}

0 commit comments

Comments
 (0)