Skip to content

Commit 136ef51

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
update readme.md
1 parent ea4e447 commit 136ef51

File tree

2 files changed

+6
-53
lines changed

2 files changed

+6
-53
lines changed

README.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ To use the SDK, you need to provide it with a few configuration parameters. The
138138
}]'
139139
></ik-image>
140140

141+
// Renders an image with text overlaid.
142+
<ik-image
143+
path="/default-image.jpg"
144+
[transformation]='[{ "width": 300, "height": 300 },{ "raw": "l-text,i-Hello%20World,w-10,rt-90,l-end" }]'>
145+
</ik-image>
146+
141147
// Lazy loading
142148
<ik-image path="/default-image.jpg" loading="lazy"></ik-image>
143149

@@ -274,34 +280,6 @@ See the complete list of transformations supported in ImageKit [here](https://do
274280
| rotation | rt |
275281
| blur | bl |
276282
| named | n |
277-
| overlayX | ox |
278-
| overlayY | oy |
279-
| overlayFocus | ofo |
280-
| overlayHeight | oh |
281-
| overlayWidth | ow |
282-
| overlayImage | oi |
283-
| overlayImageTrim | oit |
284-
| overlayImageAspectRatio | oiar |
285-
| overlayImageBackground | oibg |
286-
| overlayImageBorder | oib |
287-
| overlayImageDPR | oidpr |
288-
| overlayImageQuality | oiq |
289-
| overlayImageCropping | oic |
290-
| overlayImageTrim | oit |
291-
| overlayText | ot |
292-
| overlayTextFontSize | ots |
293-
| overlayTextFontFamily | otf |
294-
| overlayTextColor | otc |
295-
| overlayTextTransparency | oa |
296-
| overlayAlpha | oa |
297-
| overlayTextTypography | ott |
298-
| overlayBackground | obg |
299-
| overlayTextEncoded | ote |
300-
| overlayTextWidth | otw |
301-
| overlayTextBackground | otbg |
302-
| overlayTextPadding | otp |
303-
| overlayTextInnerAlignment | otia |
304-
| overlayRadius | or |
305283
| progressive | pr |
306284
| lossless | lo |
307285
| trim | t |

sdk/tests/sdk-tests/ik-upload.component.spec.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -643,31 +643,6 @@ describe("IkUploadComponent", () => {
643643
expect(abortFunction).toHaveBeenCalled();
644644
});
645645

646-
it("should handle promise rejection with an array of errors", async () => {
647-
// Set up the component and data
648-
const component = fixture.componentInstance;
649-
const dummyFile: File = new File([""], "dummy-file-name");
650-
component.fileName = dummyFile.name;
651-
652-
// Mock the authenticator function to reject the promise with an array of errors
653-
component.authenticator = () => {
654-
return Promise.reject(['Error 1', 'Error 2']).catch(err=>{});
655-
};
656-
657-
fixture.detectChanges();
658-
659-
// Call the authenticator function
660-
const onErrorEventEmitter = spyOn(component.onError, 'emit').and.callThrough();
661-
const input = fixture.nativeElement.children[0];
662-
input.dispatchEvent(new Event('change'));
663-
fixture.detectChanges();
664-
665-
// Wait for the promise to be rejected
666-
await fixture.whenStable();
667-
668-
expect(onErrorEventEmitter).toHaveBeenCalled();
669-
});
670-
671646
it("should handle promise resolution", async () => {
672647
// Set up the component and data
673648
const component = fixture.componentInstance;

0 commit comments

Comments
 (0)