Skip to content

Commit 012040d

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
formatted the code
1 parent 0328db4 commit 012040d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,16 @@ extensions = [
396396
}
397397
]
398398

399+
transformation = {
400+
'pre': 'l-text,i-Imagekit,fs-50,l-end',
401+
'post': [
402+
{
403+
'type': 'transformation',
404+
'value': 'w-100'
405+
}
406+
]
407+
}
408+
399409
options = UploadFileRequestOptions(
400410
use_unique_file_name=False,
401411
tags=['abc', 'def'],
@@ -411,7 +421,7 @@ options = UploadFileRequestOptions(
411421
overwrite_tags=False,
412422
overwrite_custom_metadata=True,
413423
custom_metadata={'testss': 12},
414-
transformation={'pre': 'l-text,i-Imagekit,fs-50,l-end', 'post': [{'type': 'transformation', 'value': 'w-100'}]}
424+
transformation=transformation
415425
)
416426

417427
result = imagekit.upload_file(file='<url|base_64|binary>', # required

0 commit comments

Comments
 (0)