Outcoming transformation
I'd like to download the assert with adding some text by transformation. Exactly I want 'private_download_url' for expiration of the downloaded assert.
And the most important point is that adding some text is different per each time at downloading.
There is a function when uploading the assert.
-
Hi Vlad,
The private download URL was not designed to retrieve a derived version (i.e. with transformations including text overlays), it was only designed to download the original. With that being said, token/cookie-based authentication would be the way to go, which is available for a premium plan (see https://cloudinary.com/documentation/control_access_to_media#token_based_authentication_premium_feature).
Alternatively, you could upload your image and add the text overlay at the same time, for example (i.e. using Python SDK):
cloudinary.uploader.upload("sample.jpg",
type = "private",
transformation=[
{'overlay': {'font_family': "Arial", 'font_size': 50, 'text': "Your dynamic message"}},
])And you can then generate the private download URL (i.e. using the Python SDK):cloudinary.utils.private_download_url('sample', 'jpg')
Hope this helps, please let me know if you have any further questions.
Best regards,
Eric
0
Post is closed for comments.
Comments
1 comment