Skip to content

Conversation

s-vamshi
Copy link
Contributor

@s-vamshi s-vamshi commented Oct 5, 2023

Closes #80

Used Cloudinary Python SDK to make Transformations & Effects on Image.

Here is the console output in terminal.
image
And corresponding generated image
https://res.cloudinary.com/dl1dqiopl/image/upload/c_fill,h_850,w_700/h_200,l_samples:breakfast,w_200/fl_layer_apply,g_north_east,x_400,y_400/v1/samples/smile.jpg

@colbyfayock
Copy link
Collaborator

hey @s-vamshi worked perfectly! can i request one change, can we try to use the .url method? it should be available i think, where it would only output the URL instead of an image tag, which i think makes more sense in a terminal

@colbyfayock
Copy link
Collaborator

oops looks like its build_url

cloudinary.CloudinaryImage("sample.jpg").build_url(
  width = 100, height = 150, crop = 'fill')

https://cloudinary.com/documentation/django_image_manipulation#direct_url_building

@s-vamshi
Copy link
Contributor Author

s-vamshi commented Oct 6, 2023

@colbyfayock used build_url method, can you please check if its working?

@colbyfayock
Copy link
Collaborator

worked perfectly! thanks @s-vamshi

@colbyfayock colbyfayock merged commit 54a0990 into cloudinary-community:main Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Example] Python - Adding an image as an overlay
2 participants