Skip to content

Commit b07ac8f

Browse files
committed
feat: adds colorize and crop modes
1 parent 2378655 commit b07ac8f

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/interfaces/shared.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,17 @@ export interface Transformation {
14141414
*/
14151415
border?: string;
14161416

1417+
/**
1418+
* Applies a color tint to the image. Accepts color and intensity as optional
1419+
* parameters.
1420+
*
1421+
* - `co-color` - Color to apply (e.g., `red`, `blue`, `FF0022`). Default is gray
1422+
* color.
1423+
* - `in-intensity` - Intensity of the color (0-100). Default is 35. See
1424+
* [Colorize](https://imagekit.io/docs/effects-and-enhancements#colorize---e-colorize).
1425+
*/
1426+
colorize?: string;
1427+
14171428
/**
14181429
* Indicates whether the output image should retain the original color profile. See
14191430
* [Color profile](https://imagekit.io/docs/image-optimization#color-profile---cp).
@@ -1442,13 +1453,13 @@ export interface Transformation {
14421453
* Crop modes for image resizing. See
14431454
* [Crop modes & focus](https://imagekit.io/docs/image-resize-and-crop#crop-crop-modes--focus).
14441455
*/
1445-
crop?: 'force' | 'at_max' | 'at_max_enlarge' | 'at_least' | 'maintain_ratio';
1456+
crop?: 'force' | 'at_max' | 'at_max_enlarge' | 'at_least' | 'maintain_ratio' | 'maintain_ratio_no_enlarge';
14461457

14471458
/**
14481459
* Additional crop modes for image resizing. See
14491460
* [Crop modes & focus](https://imagekit.io/docs/image-resize-and-crop#crop-crop-modes--focus).
14501461
*/
1451-
cropMode?: 'pad_resize' | 'extract' | 'pad_extract';
1462+
cropMode?: 'pad_resize' | 'extract' | 'pad_extract' | 'pad_resize_no_enlarge' | 'pad_extract_no_shrink';
14521463

14531464
/**
14541465
* Specifies a fallback image if the resource is not found, e.g., a URL or file

0 commit comments

Comments
 (0)