Actions80
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Image Watermark To Image
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- Add Text Watermark To Image
- AI-Invoice Parser
- AI-Process Contract
- AI-Process HealthCard
- Classify Document
- Compress Image
- Compress PDF
- Convert HTML To PDF
- Convert Image Format
- Convert JSON To Excel
- Convert Markdown To PDF
- Convert PDF To Editable PDF Using OCR
- Convert PDF To Excel
- Convert PDF To PowerPoint
- Convert PDF To Word
- Convert To PDF
- Convert URL to PDF
- Convert VISIO
- Convert Word to PDF Form
- Create Images From PDF
- Create PDF/A
- Create Swiss QR Bill
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Split PDF By Barcode
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Extract Attachment From PDF
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Resources
- Extract Table From PDF
- Extract Text By Expression
- Extract Text From Word
- Fill PDF Form
- Find And Replace Text
- Flip Image
- Flatten PDF
- Generate Barcode
- Generate Document Single
- Generate Documents Multiple
- Get Document From Pdf4me
- Get Image Metadata
- Get PDF Metadata
- Split PDF By Swiss QR
- Get Tracking Changes In Word
- Image Extract Text
- Linearize PDF
- Merge Multiple PDFs
- Overlay PDFs
- Parse Document
- Protect PDF
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Remove EXIF Tags From Image
- Repair PDF Document
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Document
- Rotate Image
- Rotate Image By EXIF Data
- Rotate PDF Page
- Sign PDF
- Split PDF By Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
This node operation "Rotate Image By EXIF Data" processes an image file to automatically rotate it according to its embedded EXIF orientation metadata. This is useful when images are taken with devices that store orientation information in EXIF tags rather than physically rotating the pixels, which can cause images to appear sideways or upside down in some viewers.
Common scenarios include:
- Automatically correcting the orientation of photos uploaded from cameras or smartphones before further processing or display.
- Preparing images for consistent presentation in workflows that involve image manipulation, storage, or sharing.
- Ensuring downstream nodes receive correctly oriented images without manual intervention.
For example, a user might upload a batch of photos from a mobile device and use this node to normalize their orientation based on EXIF data before resizing or watermarking them.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the image file to rotate by EXIF data. Options: Binary Data, Base64 String, URL. |
| Input Binary Field | (If Input Data Type is Binary Data) The name of the binary property containing the image file. |
| Base64 Image Content | (If Input Data Type is Base64 String) The base64 encoded string representing the image content. |
| Image URL | (If Input Data Type is URL) The URL pointing to the image file to be rotated by EXIF data. |
| Output File Name | The desired filename for the output rotated image file. Default is "rotate_image_by_exif_data_output.png". |
| Async | Enable asynchronous processing (true/false). |
| Binary Data Output Name | Custom name for the binary data field in the node's output. Default is "data". |
Output
The node outputs the rotated image as binary data under the specified binary data output name (default "data"). The output includes:
- A binary property containing the rotated image file data.
- The output file will have the name specified by the "Output File Name" property.
This allows subsequent nodes to access the corrected image either for saving, further processing, or transmission.
Dependencies
- Requires access to the input image data either as binary data from a previous node, a base64 encoded string, or a publicly accessible URL.
- No explicit external API keys or services are required; the rotation is performed internally based on EXIF metadata.
- The node supports asynchronous processing to handle potentially large images efficiently.
Troubleshooting
Issue: Image does not rotate as expected.
- Cause: The image may lack EXIF orientation metadata or the metadata is incorrect.
- Solution: Verify the source image contains valid EXIF orientation tags. Use metadata inspection tools if needed.
Issue: Node fails when using URL input.
- Cause: The URL may be inaccessible, require authentication, or point to a non-image resource.
- Solution: Ensure the URL is publicly accessible and points directly to an image file.
Issue: Binary data input field not found.
- Cause: The specified binary property name does not exist in the incoming data.
- Solution: Confirm the correct binary property name is set matching the previous node's output.
Error messages typically relate to invalid input data types or missing properties. Enabling "Continue On Fail" can help process multiple items even if some fail.
Links and References
- EXIF Orientation Tag Explanation
- Image Rotation Based on EXIF Metadata
- n8n Documentation on Binary Data Handling