You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ export default ImageEditor;
130
130
|`signer`|`Signer`| ❌ | Function to generate signed URLs for private images |
131
131
|`onAddImage`|`() => void`| ❌ | Callback function for adding new images |
132
132
|`exportOptions`|`ExportOptions`| ❌ | Configuration for export functionality |
133
+
|`focusObjects`|`string[]`| ❌ | Custom list of selectable focus objects for object-based focus |
133
134
134
135
### ImageKitEditor Ref Methods
135
136
@@ -181,6 +182,19 @@ exportOptions={{
181
182
}}
182
183
```
183
184
185
+
### Focus Objects
186
+
187
+
You can override the list of selectable focus objects used when a transformation's focus is set to "Object" (e.g., Maintain Aspect Ratio, Forced Crop, Extract). If not provided, the editor defaults to ImageKit's supported objects (e.g., person, bicycle, car, dog, etc.).
188
+
189
+
See the supported object list in the ImageKit docs: https://imagekit.io/docs/image-resize-and-crop#supported-object-list
0 commit comments