Skip to main content

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:

  1. Add PDF4me node to workflow
  2. Select "Rotate Image By EXIF Data" action
  3. Configure input parameters (see below)
Rotate Image By EXIF Data

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.

ParameterTypeDescriptionExample
Input Data TypeStringYesPDF4me image input format selection
Choose the format of your source image data input.
PDF4me supports multiple input types with different field requirements
1) Binary DataYes (One Required)1) Binary Data - Use "Input Binary Field" to reference image file from previous node
2) Base64 StringYes (One Required)2) Base64 String - Use "Base64 Image Content" field for encoded image data
3) URLYes (One Required)3) URL - Use "Image URL" field to provide a public/open permission URL to the image file
Input Binary FieldBinaryYes (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 ContentStringYes (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 URLStringYes (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 NameStringYesPDF4me 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
AsyncBooleanNoPDF4me 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 NameStringYesPDF4me 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

ParameterTypeDescriptionExample
successBooleanPDF4me 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 workflowstrue
messageStringPDF4me EXIF processing status message - Human-readable status message providing details about the EXIF processing result. Includes success confirmation or error details for troubleshootingEXIF tags removed successfully
fileNameStringPDF4me 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 processesremove_exif_tags_from_image.jpg
mimeTypeStringPDF4me 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 applicationsimage/jpeg
fileSizeNumberPDF4me 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 monitoring2769
imageTypeStringPDF4me source image format - The format of the source image that was processed (e.g., "JPG", "PNG"). Useful for tracking the original image formatJPG

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 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"
}
]

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

Get Help