tessl install tessl/pypi-cloudinary@1.44.0Python and Django SDK for Cloudinary, a cloud-based image and video management service with comprehensive transformation, optimization, and delivery capabilities
Agent Success
Agent success rate when using this tile
94%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.08x
Baseline
Agent success rate without this tile
87%
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.