Skip to content

Commit 316b1ae

Browse files
authored
Merge pull request #61 from imagekit-developer/SDK-94
added transformation snippet in readme
2 parents 57610a7 + 6f6b68b commit 316b1ae

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/gempush.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Ruby Gem
22
on:
33
release:
4-
types: [created]
4+
types: [published]
55

66
jobs:
77
build:

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,16 @@ imagekitio.upload_file(
443443
file_name: "my_file_name.jpg", # required
444444
response_fields: 'isPrivateFile, tags',
445445
tags: %w[abc def],
446-
use_unique_file_name: true
446+
use_unique_file_name: true,
447+
transformation: {
448+
pre: 'l-text,i-Imagekit,fs-50,l-end',
449+
post: [
450+
{
451+
type: 'transformation',
452+
value: 'w-100'
453+
}
454+
]
455+
}
447456
)
448457

449458
```

0 commit comments

Comments
 (0)