Skip to main content

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.

Compress Image Power Automate

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.

ParameterTypeDescriptionExample
File Content***BinarySource 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***StringImage 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***OptionImage 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 LevelOptionCompression 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 View

Response data in a structured table format:

ParameterTypeDescription
File ContentBinaryCompressed image file in binary format ready for storage or further processing

Workflow Examples

The PDF4me Compress Image action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Product Image Optimization Workflow

Transform your e-commerce operations with automated product photo compression:

Complete Workflow Steps:

  1. Trigger: New product image uploaded to SharePoint product folder
  2. Get Image: Retrieve high-resolution product photo from SharePoint
  3. Compress Image: Reduce image size with medium compression level
  4. Create Thumbnail: Generate smaller thumbnail version separately
  5. Upload Web Version: Save compressed image to website image folder
  6. Upload Original: Store original high-res image in archive folder
  7. Update Product: Link compressed image to product record in database
  8. 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

Industry Use Cases & Applications

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

Get Help