Compress Image in Power Automate
PDF4me Compress Image action delivers intelligent image file size reduction in Power Automate with support for multiple image formats including JPEG, PNG, GIF, and TIFF. This optimization service compresses images based on format-specific algorithms and adjustable compression levels, reducing storage requirements and accelerating file sharing across Microsoft 365 workflows while preserving visual quality.
Authenticating Your API Request
To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful image compression services.

Key Features
- Multi-Format Support: Compress JPEG, PNG, GIF, TIFF, and other image formats
- Adjustable Compression: Control compression level from minimal to maximum
- Quality Preservation: Maintain visual quality while reducing file size
- Batch Processing: Compress multiple images in automated workflows
- Flow Integration: Use compressed images in subsequent Power Automate actions
Parameters
Complete list of parameters for the Compress Image action. Configure these parameters to control image compression.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| File Content*** | Binary | Source Image File Content • Map image file content from previous action • Supports JPEG, PNG, GIF, TIFF, BMP formats • Can be from SharePoint, OneDrive, email attachments • Accepts dynamic content from flow variables | [File Content from Get File] |
| File Name*** | String | Image File Name • Specify image file name with extension • Used for processing and output naming • Must include proper image extension (.jpg, .png, .gif, .tiff) • Supports dynamic naming from flow variables | ProductPhoto.jpg |
| Image Type*** | Option | Image Format Selection • JPEG - Best for photographs and complex images • PNG - Ideal for graphics with transparency • GIF - Suitable for simple graphics and animations • TIFF - Professional format for high-quality images | JPEG |
| Compression Level | Option | Compression Intensity Control • Low - Minimal compression, highest quality, larger file size • Medium - Balanced compression and quality • High - Maximum compression, smaller file size • Default is Medium if not specified | Medium |
Output
The PDF4me Compress Image action returns comprehensive output data for seamless Power Automate flow integration:
- Table
- JSON
- Flow Integration
Table View
Response data in a structured table format:
| Parameter | Type | Description |
|---|---|---|
| File Content | Binary | Compressed image file in binary format ready for storage or further processing |
JSON Response Format
{
"File Content": "[Binary Content of Compressed Image]"
}
Power Automate Flow Usage
Use compressed image in subsequent actions:
- SharePoint Upload: Save compressed images to document libraries
- OneDrive Storage: Store optimized images in personal or shared folders
- Email Attachment: Attach smaller images to Outlook emails
- Teams Sharing: Post compressed images in Teams channels
- Web Upload: Upload optimized images to websites or web services
- Further Processing: Use as input for additional image or PDF actions
Workflow Examples
The PDF4me Compress Image action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Product Photos
- Email Attachments
- Document Processing
- Social Media
Automated Product Image Optimization Workflow
Transform your e-commerce operations with automated product photo compression:
Complete Workflow Steps:
- Trigger: New product image uploaded to SharePoint product folder
- Get Image: Retrieve high-resolution product photo from SharePoint
- Compress Image: Reduce image size with medium compression level
- Create Thumbnail: Generate smaller thumbnail version separately
- Upload Web Version: Save compressed image to website image folder
- Upload Original: Store original high-res image in archive folder
- Update Product: Link compressed image to product record in database
- Notify Team: Send confirmation to marketing team via Teams
Business Benefits:
- Reduces product image sizes by 70% for faster website loading
- Processes 200+ product photos daily automatically
- Improves website performance with optimized images
- Saves 500GB storage annually with compression
Automated Email Attachment Image Compression
Streamline your email communications with automatic image attachment optimization:
Complete Workflow Steps:
- Trigger: Email with image attachments arrives in shared mailbox
- Get Attachments: Extract all image attachments from email
- Apply to Each: Process each image attachment individually
- Compress Image: Reduce each image size for email forwarding
- Create Reply: Compose reply email with original message
- Attach Compressed: Add compressed images to reply email
- Send Reply: Send email with optimized attachments
- Archive Original: Save original email with large images to archive
Business Benefits:
- Reduces email attachment sizes by 80% on average
- Handles 50+ image-heavy emails daily automatically
- Prevents email delivery failures from size limits
- Improves email delivery speed by 5x with smaller files
Automated Document Image Optimization Workflow
Optimize your document management with automated image compression before archival:
Complete Workflow Steps:
- Trigger: Document with embedded images uploaded to OneDrive
- Extract Images: Get all images from document using extraction tool
- Apply to Each: Iterate through extracted images
- Compress Image: Optimize each image with high compression
- Replace Images: Update document with compressed images
- Save Document: Store optimized document in SharePoint archive
- Calculate Savings: Compare original vs compressed file sizes
- Report Metrics: Log compression statistics to Excel report
Business Benefits:
- Reduces document storage requirements by 60%
- Processes 100+ documents with images daily
- Saves $5000 annually on storage costs
- Maintains document quality while optimizing size
Automated Social Media Image Optimization
Enhance your social media workflows with automated image optimization for posting:
Complete Workflow Steps:
- Trigger: Marketing team submits social media post in Microsoft Forms
- Get Form Data: Retrieve post text, hashtags, and image attachment
- Compress Image: Optimize image for social media platform requirements
- Resize Image: Adjust dimensions to platform specifications
- Add Watermark: Apply company watermark to compressed image
- Post to Platform: Share optimized image on social media via connector
- Save Archive: Store compressed image in social media content library
- Track Post: Log post details and metrics to marketing database
Business Benefits:
- Optimizes 50+ social media images weekly automatically
- Ensures platform compliance with size and dimension requirements
- Reduces image upload time by 75% with compression
- Maintains brand consistency across all social channels
Industry Use Cases & Applications
- E-commerce & Retail
- Real Estate & Property
- Marketing & Advertising
- Healthcare & Medical
E-commerce & Retail Use Cases
- Product Images: Compress product photos for web catalog display
- Category Banners: Optimize category and promotional banner images
- Email Marketing: Reduce newsletter image sizes for better deliverability
- Mobile App: Compress images for mobile e-commerce applications
Real Estate & Property Use Cases
- Listing Photos: Optimize property listing images for MLS platforms
- Virtual Tours: Compress tour images for faster loading experiences
- Floorplans: Reduce floorplan image sizes for email distribution
- Marketing Materials: Optimize property marketing image files
Marketing & Advertising Use Cases
- Campaign Assets: Compress campaign images for digital advertising
- Social Media: Optimize images for platform-specific requirements
- Email Campaigns: Reduce email marketing image file sizes
- Website Content: Compress web graphics for faster page loads
Healthcare & Medical Use Cases
- Medical Imaging: Compress diagnostic images for system storage
- Patient Records: Optimize medical document images for archival
- Telemedicine: Reduce image sizes for remote consultation sharing
- Research Data: Compress research images for collaborative platforms