Crop Image in Power Automate
PDF4me Crop Image action enables cropping and trimming images in Power Automate with border and rectangle crop methods. This essential image editing feature removes unwanted image areas, focuses on key content, adjusts composition, and optimizes images for specific dimensions, perfect for product photos, profile pictures, social media formatting, and content optimization across Microsoft 365 workflows.
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 cropping services.

Key Features
- Multiple Crop Methods: Crop by border or rectangle specifications
- Precision Control: Define exact crop dimensions and coordinates
- Aspect Ratio: Maintain or modify image aspect ratios
- Batch Processing: Crop multiple images in automated workflows
- Quality Preservation: Maintain image quality during cropping
Parameters
Complete list of parameters for the Crop Image action. Configure these parameters to control image cropping.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Crop Type*** | Option | Crop Method Selection • Border - Crop by specifying border widths to remove • Rectangle - Crop by defining rectangle coordinates • Percentage - Crop by percentage from edges • Determines cropping calculation method | Rectangle |
| Operation | Dynamic | Crop Operation Parameters • Dynamic object based on Crop Type selected • Border: Top, Bottom, Left, Right values in pixels • Rectangle: X, Y, Width, Height coordinates • Percentage: Top%, Bottom%, Left%, Right% values | {X:100, Y:100, Width:800, Height:600} |
Output
The PDF4me Crop 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 | Cropped image file with specified areas removed |
JSON Response Format
{
"File Content": "[Binary Content of Cropped Image]"
}
Power Automate Flow Usage
Use cropped image in subsequent actions:
- SharePoint Upload: Save cropped images to libraries
- Profile Pictures: Use cropped images for user profiles
- Product Photos: Store cropped product images
- Email Attachments: Send optimally cropped images
- Web Publishing: Upload cropped images to websites
- Further Processing: Apply additional image operations
Workflow Examples
The PDF4me Crop Image action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Product Photo Optimization
- Profile Pictures
- Social Media Formatting
- Document Scanning
Automated Product Photo Cropping Workflow
Transform product photography with automated image cropping:
Complete Workflow Steps:
- Trigger: Product photo uploaded to photography folder
- Get Photo: Retrieve product image from SharePoint
- Detect Product: Use AI Vision to identify product boundaries
- Calculate Crop: Determine optimal crop rectangle
- Crop Image: Remove background and focus on product
- Resize Cropped: Adjust to standard product photo size
- Upload to Catalog: Save cropped image to product catalog
- Update Product: Link cropped image to product record
Business Benefits:
- Crops 200+ product photos monthly automatically
- Ensures consistent product photo composition
- Reduces manual photo editing time by 90%
- Improves product page appearance and conversion
Automated Profile Picture Cropping Workflow
Streamline user management with automated profile picture cropping:
Complete Workflow Steps:
- Trigger: New employee photo uploaded to HR system
- Get Photo: Retrieve employee photo
- Detect Face: Use AI Vision for face detection
- Calculate Crop: Determine square crop around face
- Crop Image: Extract face area with proper margins
- Resize to Standard: Adjust to 400x400 pixels
- Update Profile: Set as employee profile picture
- Sync to Azure AD: Update user photo in Active Directory
Business Benefits:
- Crops 50+ profile photos monthly
- Ensures consistent profile picture formatting
- Eliminates manual photo editing for HR
- Improves directory photo quality and consistency
Automated Social Media Image Cropping
Optimize social content with platform-specific image cropping:
Complete Workflow Steps:
- Trigger: Marketing image ready for social posting
- Get Original: Retrieve full-size image
- Crop for Instagram: Create 1080x1080 square crop
- Crop for Twitter: Create 1200x675 landscape crop
- Crop for LinkedIn: Create 1200x627 crop
- Add Watermarks: Apply logo to each cropped version
- Post to Platforms: Share each cropped version appropriately
- Archive Versions: Store all cropped variants
Business Benefits:
- Creates 60+ platform-specific images weekly
- Ensures optimal display on all social platforms
- Eliminates manual image adaptation
- Accelerates social media publishing by 80%
Automated Scanned Document Crop Workflow
Enhance document scanning with automated edge cropping:
Complete Workflow Steps:
- Trigger: Document scanned and saved as image
- Get Scan: Retrieve scanned image file
- Detect Edges: Identify document edges in scan
- Calculate Crop: Determine crop to remove scanner edges
- Crop Image: Remove black edges and focus on document
- Enhance Quality: Apply brightness/contrast adjustments
- Convert to PDF: Transform cropped image to PDF
- Archive Clean: Store cleaned document version
Business Benefits:
- Cleans 150+ scanned documents monthly
- Removes scanner artifacts and edges automatically
- Improves scanned document appearance
- Reduces manual photo editing by 95%
Industry Use Cases & Applications
- E-commerce & Retail
- Marketing & Advertising
- Real Estate & Property
- Healthcare & Medical
E-commerce & Retail Use Cases
- Product Photography: Crop product photos to remove backgrounds
- Catalog Images: Standardize catalog image dimensions
- Thumbnail Creation: Crop images for thumbnail generation
- Social Media Posts: Crop for platform-specific dimensions
Marketing & Advertising Use Cases
- Campaign Assets: Crop images for multi-channel campaigns
- Social Media Content: Adapt images to platform requirements
- Email Marketing: Crop images for email-optimized sizes
- Ad Creative: Prepare images for advertising platforms
Real Estate & Property Use Cases
- Listing Photos: Crop property photos to highlight features
- Floorplan Optimization: Crop floorplans to relevant areas
- Featured Areas: Focus on key property features
- Social Media Sharing: Crop for Instagram and Facebook
Healthcare & Medical Use Cases
- Medical Imaging: Crop diagnostic images to areas of interest
- Patient Photos: Crop and standardize patient identification photos
- Research Images: Focus on relevant image areas for analysis
- Documentation: Crop images for medical records