Skip to content

Commit 4e64d22

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
update overlay syntax
1 parent af9245c commit 4e64d22

1 file changed

Lines changed: 6 additions & 28 deletions

File tree

README.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ import { IKImage, IKVideo, IKContext, IKUpload } from 'imagekitio-react'
9999
"rotation": "90"
100100
}]} />
101101

102+
// Renders an image with text overlaid.
103+
<IKImage
104+
path="/default-image.jpg"
105+
transformation={[{ "width": 300, "height": 300 },{ "raw": "l-text,i-Imagekit,rt-90,co-0651D5,fs-50,l-end" }]}
106+
/>
107+
102108
// Lazy loading image
103109
<IKImage
104110
path="/default-image.jpg"
@@ -300,34 +306,6 @@ See the complete list of transformations supported in ImageKit [here](https://do
300306
| rotation | rt |
301307
| blur | bl |
302308
| named | n |
303-
| overlayX | ox |
304-
| overlayY | oy |
305-
| overlayFocus | ofo |
306-
| overlayHeight | oh |
307-
| overlayWidth | ow |
308-
| overlayImage | oi |
309-
| overlayImageTrim | oit |
310-
| overlayImageAspectRatio | oiar |
311-
| overlayImageBackground | oibg |
312-
| overlayImageBorder | oib |
313-
| overlayImageDPR | oidpr |
314-
| overlayImageQuality | oiq |
315-
| overlayImageCropping | oic |
316-
| overlayImageTrim | oit |
317-
| overlayText | ot |
318-
| overlayTextFontSize | ots |
319-
| overlayTextFontFamily | otf |
320-
| overlayTextColor | otc |
321-
| overlayTextTransparency | oa |
322-
| overlayAlpha | oa |
323-
| overlayTextTypography | ott |
324-
| overlayBackground | obg |
325-
| overlayTextEncoded | ote |
326-
| overlayTextWidth | otw |
327-
| overlayTextBackground | otbg |
328-
| overlayTextPadding | otp |
329-
| overlayTextInnerAlignment | otia |
330-
| overlayRadius | or |
331309
| progressive | pr |
332310
| lossless | lo |
333311
| trim | t |

0 commit comments

Comments
 (0)