Python and Django SDK for Cloudinary, a cloud-based image and video management service with comprehensive transformation, optimization, and delivery capabilities
Overall
score
94%
Build a tool that generates optimized product images for an e-commerce platform. The tool should apply multiple sequential transformations to create product thumbnails with specific visual treatments.
Your implementation should accept a product image and generate a URL that applies the following transformations in sequence:
The transformations must be applied sequentially, where each step builds upon the previous one.
@generates
def generate_product_thumbnail(public_id: str, watermark_text: str) -> str:
"""
Generate a product thumbnail URL with sequential transformations.
Args:
public_id: The Cloudinary public ID of the product image
watermark_text: Text to display as watermark overlay
Returns:
A Cloudinary URL string with all transformations applied
"""
passProvides cloud-based image transformation and delivery capabilities.
Install with Tessl CLI
npx tessl i tessl/pypi-cloudinarydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10