Rotate Image By EXIF Data using n8n action
PDF4me Rotate Image By EXIF Data automatically rotates images based on embedded EXIF orientation metadata through n8n automation workflows. Process images (JPG, PNG with EXIF data) via n8n triggers, binary data, base64 strings, or public URLs to read EXIF orientation tags and apply correct rotation automatically, fixing photos taken with rotated cameras or mobile devices. This solution is ideal for photo library correction, mobile image processing, camera image fixing, automated orientation correction, batch photo processing, and digital asset management workflows that require EXIF-aware rotation with automatic orientation detection and seamless integration.
Setup
Add the PDF4me "Rotate Image By EXIF Data" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.
Prerequisites:
- PDF4me API credentials
- n8n workflow access
Configuration:
- Add PDF4me node to workflow
- Select "Rotate Image By EXIF Data" action
- Configure input parameters (see below)

Parameters
Complete list of parameters for the Rotate Image By EXIF Data action. Configure these parameters to control EXIF-based image rotation.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Input Data Type | String | Yes | PDF4me image input format selection Choose the format of your source image data input. PDF4me supports multiple input types with different field requirements |
| 1) Binary Data | Yes (One Required) | 1) Binary Data - Use "Input Binary Field" to reference image file from previous node | |
| 2) Base64 String | Yes (One Required) | 2) Base64 String - Use "Base64 Image Content" field for encoded image data | |
| 3) URL | Yes (One Required) | 3) URL - Use "Image URL" field to provide a public/open permission URL to the image file | |
| Input Binary Field | Binary | Yes (If Binary Data) | PDF4me binary image file input - Reference source image file (.jpg, .png) from previous n8n node or file upload. PDF4me processes binary image files with automatic EXIF detection and validation. Required when Input Data Type is "Binary Data" |
| Base64 Image Content | String | Yes (If Base64 String) | PDF4me base64 encoded image input - Provide source image data (.jpg, .png) as base64 encoded string for secure transmission. PDF4me automatically decodes and processes the image content with EXIF metadata analysis. Required when Input Data Type is "Base64 String" |
| Image URL | String | Yes (If URL) | PDF4me public image URL input - Provide a public/open permission URL to the source image file (.jpg, .png) to be processed for EXIF-based rotation. PDF4me downloads and processes the file from the provided URL with metadata analysis. Required when Input Data Type is "URL" |
| Output File Name | String | Yes | PDF4me output filename configuration - Specify the name for the generated rotated image file with proper extension (.jpg, .png). This is an input parameter that configures what the output file will be named. PDF4me ensures unique naming and validates file format compliance |
| Async | Boolean | No | PDF4me asynchronous processing - Enable asynchronous processing for large images or when processing time is not critical. When enabled, the operation runs in the background and returns immediately |
| Binary Data Output Name | String | Yes | PDF4me output variable configuration - Define the variable name for accessing the generated rotated image binary data in your n8n workflow. This binary data can be used as input data in subsequent actions within your workflow |
Output
Output Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | PDF4me EXIF processing status indicator - Boolean flag indicating the success or failure of the EXIF-based image processing. PDF4me returns true for successful operations and false for any errors, enabling robust error handling in automated workflows | true |
| message | String | PDF4me EXIF processing status message - Human-readable status message providing details about the EXIF processing result. Includes success confirmation or error details for troubleshooting | EXIF tags removed successfully |
| fileName | String | PDF4me generated image filename - The complete filename of the successfully generated processed image file with proper extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processes | remove_exif_tags_from_image.jpg |
| mimeType | String | PDF4me output MIME type - MIME type of the generated image file (e.g., "image/jpeg", "image/png"). Useful for content type validation and proper file handling in web applications | image/jpeg |
| fileSize | Number | PDF4me processed image file size in bytes - The exact size of the generated processed image file in bytes, provided by PDF4me for storage planning and file transfer monitoring | 2769 |
| imageType | String | PDF4me source image format - The format of the source image that was processed (e.g., "JPG", "PNG"). Useful for tracking the original image format | JPG |
N8N Action Response
The PDF4me Rotate Image By EXIF Data API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
[
{
"success": true,
"message": "EXIF tags removed successfully",
"fileName": "remove_exif_tags_from_image.jpg",
"mimeType": "image/jpeg",
"fileSize": 2769,
"imageType": "JPG"
}
]
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| success | true |
| message | EXIF tags removed successfully |
| fileName | remove_exif_tags_from_image.jpg |
| mimeType | image/jpeg |
| fileSize | 2769 |
| imageType | JPG |
Schema View
The data structure and types of the response:
1 item
success: ☑ true
message: AB Image rotated by EXIF data successfully
fileName: AB rotate_image_by_exif.png
mimeType: AB image/png
fileSize: # 2048000
exifOrientation: AB Rotate 90 CW
rotationApplied: ☑ true
Type Indicators:
AB= String#= Number☑= Boolean
Binary Data View
The actual processed image file and information:
data
─────────────────────────────
File Name: rotate_image_by_exif.png
File Extension: png
Mime Type: image/png
File Size: 2,048,000 bytes
EXIF Orientation: Rotate 90 CW
Rotation Applied: Yes
EXIF Data: Processed
Quality: Preserved
Binary Data Access:
- n8n Binary Object:
$binary.data.data - Base64 Content: Available for direct use
- File Operations: Ready for download, email, or storage
Use Cases
Digital Photography and Mobile Content Processing
- Automatically correct orientation issues from smartphones and digital cameras that embed orientation data in EXIF metadata
- Process bulk uploads of user-generated content from mobile devices to ensure consistent viewing orientation across platforms
- Standardize image orientations for professional photography workflows where camera orientation data is preserved in EXIF
Content Management and Web Publishing
- Automatically orient images for optimal web display by reading and applying EXIF orientation data during content ingestion
- Process images from various sources (cameras, phones, scanners) to ensure consistent presentation in content management systems
- Automate the correction of misoriented images in digital asset libraries without manual intervention
Social Media and E-commerce Platform Integration
- Process user-uploaded images for social media platforms by automatically applying EXIF-based orientation corrections
- Ensure product images from various sources display correctly in e-commerce platforms by reading camera orientation data
- Automate image processing pipelines for platforms that require properly oriented images for optimal user experience