Skip to content

Commit 6ef8f9b

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
added transformation snippet in readme
1 parent 8907702 commit 6ef8f9b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
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)