
TinyPNG
Your AI agent shrinks image file sizes by up to 80% using TinyPNG's smart compression during conversations. Marketing teams optimize campaign assets, developers compress uploads for faster page loads, and design teams convert between AVIF, WebP, JPEG, and PNG, all without opening an image editor.




Your AI agent processes images through TinyPNG's compression pipeline. Shrink, convert, and store optimized visuals without manual intervention.
TinyPNG
Real scenarios where marketing, design, and development teams use AI agents with TinyPNG to optimize images at scale without manual workflows.
A marketing manager has 50 product images for an upcoming email campaign. They share the image URLs with the AI agent, which sends each one through TinyPNG's compression pipeline. The agent returns optimized versions averaging 70% smaller file sizes. Email load times drop significantly and campaign deliverability improves.
A developer needs to serve next-gen image formats on their e-commerce site. They ask the AI agent to convert their PNG product catalog to WebP. The agent processes each image through TinyPNG's conversion API, delivering WebP files that are both compressed and format-optimized. PageSpeed scores improve without manual image editing.
A design agency needs to compress client-provided stock photos without stripping the embedded copyright metadata. The AI agent calls TinyPNG's preserve metadata endpoint, ensuring copyright and creation dates survive compression. The agency delivers optimized files that remain legally attributable.

TinyPNG
FAQs
The agent submits the image URL or file to TinyPNG's Shrink endpoint. TinyPNG applies smart lossy compression that reduces file size by analyzing the image content and selectively reducing color data. The agent returns the compressed image ID or download URL, typically achieving 60-80% reduction.
TinyPNG supports PNG, JPEG, WebP, and AVIF formats for both input and output. The conversion endpoint lets you switch between formats while compressing. The agent can also request the smallest format automatically, letting TinyPNG choose the optimal output.
Tars uses HTTP Basic Authentication with your TinyPNG API key as the username and an empty password. You can find your API key in your TinyPNG developer dashboard. The free tier includes 500 compressions per month.
No. Images are sent directly to TinyPNG's servers for compression. The agent retrieves the compressed output URL but does not store image files. If you use the Azure Blob storage feature, compressed images go directly to your storage account.
Yes. The Preserve Metadata endpoint lets you specify which metadata fields to keep, including copyright, creation date, and GPS location (JPEG only). The agent passes these parameters to TinyPNG so important metadata survives compression.
The free tier allows 500 compressions per month. Paid plans offer higher limits. The agent can check your current compression count through the usage endpoint so you always know where you stand before processing a large batch.
The web interface handles one image at a time with manual upload and download. Through Tars, you can process images by URL, convert formats, store to cloud, and handle bulk operations, all via conversation. No drag-and-drop, no manual downloads.
Yes. The agent supports direct upload to Azure Blob Storage using a SAS token. Provide the destination URL with permissions, and TinyPNG compresses and stores the result in one step. AWS S3 and Google Cloud Storage support is available through the broader TinyPNG API.
Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security
At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.