Image Compressor
Optimize and compress images automatically in your WordPress workflows with FlowMattic’s Image Compressor integration. Reduce image file sizes by up to 80% while maintaining quality, convert images to WebP format for faster loading times, and automatically save compressed images to your WordPress media library. Perfect for e-commerce sites, photography portfolios, news websites, and any WordPress site that needs automated image optimization to improve page speed and reduce bandwidth costs.
Key Features
Image Compressor provides powerful image optimization capabilities with configurable quality settings (1-100), support for multiple formats (JPEG, PNG, WebP), intelligent resizing while maintaining aspect ratio, and automatic WordPress media library integration. All compression is handled through FlowMattic’s optimized compression API, ensuring fast processing and consistent results. The integration works seamlessly with dynamic data from previous workflow steps, making it perfect for automated image processing pipelines.
When to use Image Compressor
- Optimize user uploads: Automatically compress images uploaded by users through forms or submissions
- Reduce storage costs: Compress images before storing them in your media library or cloud storage
- Improve page speed: Convert and compress images for faster website loading times
- Batch processing: Process multiple images from external sources (APIs, webhooks, etc.)
- Format conversion: Convert images to modern formats like WebP for better compression
- Responsive images: Resize images to specific dimensions for different use cases
How to Use Image Compressor
1. Add Image Compressor to Your Workflow
In your workflow builder:
- Click the + button to add a new step
- Search for and select Image Compressor from the core integrations
- Choose the Compress Image action
2. Configure Compression Settings
Image URL (Required)
- Enter the URL of the image you want to compress
- Can use dynamic data from previous workflow steps
- Supports most common image formats (JPEG, PNG, GIF, WebP, etc.)
Quality (Optional, default: 80)
- Set compression quality from 1-100
- Higher values = better quality but larger file size
- Lower values = smaller file size but reduced quality
- Recommended: 70-85 for optimal balance
Output Format (Optional, default: Auto)
- Auto: Keeps the original image format
- JPEG: Convert to JPEG format (best for photos)
- PNG: Convert to PNG format (best for graphics with transparency)
- WebP: Convert to WebP format (modern format with excellent compression)
Enable Resize (Optional, default: No)
- Choose Yes to resize images to specific dimensions
- Choose No to keep original dimensions
Max Width (Optional, default: 1920px)
- Only applies when resize is enabled
- Image will be scaled down if wider than this value
- Maintains aspect ratio
Max Height (Optional, default: 1080px)
- Only applies when resize is enabled
- Image will be scaled down if taller than this value
- Maintains aspect ratio
3. Use the Compressed Image
After compression, Image Compressor returns the following data:
media_id: WordPress media library IDmedia_url: URL of the compressed imagemedia_title: Image title in media librarymedia_type: MIME type of the imagewidth: Image width in pixelsheight: Image height in pixelsfile_size: File size in bytescompression_quality: Quality setting usedformat: Output format usedoriginal_url: Original image URL
You can use these values in subsequent workflow steps.
Example Use Cases
Compress User Profile Pictures
When a user uploads a profile picture via a form:
- Trigger: Form Submission
- Image Compressor: Compress to 200x200px, 75% quality
- WordPress: Update user meta with compressed image URL
Convert Images to WebP
When processing product images from a supplier API:
- Trigger: Webhook/API Call
- Image Compressor: Convert to WebP format, 85% quality
- WooCommerce: Update product with new image
Batch Resize Gallery Images
When importing images from external source:
- Trigger: Schedule/Manual
- Image Compressor: Resize to 1920x1080, 80% quality
- Custom Action: Save to specific media library folder
Troubleshooting
Image compression fails
- Verify the image URL is publicly accessible
- Check that the URL points to a valid image file
- Ensure the source image is not corrupted
Compressed image is too large/small
- Adjust the quality setting (try values between 70-85)
- Enable resize and set appropriate max dimensions
- Try converting to WebP format for better compression
Image quality is poor
- Increase the quality setting (try 85-95)
- Avoid compressing already-compressed images multiple times
- Use PNG format for graphics/screenshots instead of JPEG
Resize not working
- Make sure “Enable Resize” is set to “Yes”
- Verify max width/height values are smaller than the original image
- Images smaller than max dimensions won’t be enlarged
Image not appearing in media library
- Check WordPress media upload permissions
- Verify sufficient disk space is available
- Check error logs for specific upload errors