Actions80
- Extract Text From Word
- Find And Replace Text
- Convert PDF To Editable PDF Using OCR
- Create Swiss QR Bill
- Split PDF By Barcode
- Split PDF By Swiss QR
- Split PDF By Text
- Split PDF Regular
- Create PDF/A
- Convert HTML To PDF
- Convert Markdown To PDF
- Upload File To PDF4me
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Fill PDF Form
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- AI-Invoice Parser
- AI-Process HealthCard
- AI-Process Contract
- Generate Barcode
- Classify Document
- Parse Document
- Linearize PDF
- Flatten PDF
- Convert To PDF
- Json To Excel
- Convert PDF To Excel
- Convert PDF To Word
- Convert PDF To PowerPoint
- Convert VISIO
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Extract Pages
- Merge Multiple PDFs
- Overlay PDFs
- Rotate Document
- Rotate Page
- Sign PDF
- URL to PDF
- Add Image Watermark To Image
- Add Text Watermark To Image
- Compress Image
- Convert Image Format
- Create Images From PDF
- Flip Image
- Get Image Metadata
- Image Extract Text
- Remove EXIF Tags From Image
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Image
- Rotate Image By EXIF Data
- Compress PDF
- Get PDF Metadata
- Repair PDF Document
- Get Document From Pdf4me
- Update Hyperlinks Annotation
- Protect Document
- Unlock PDF
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Generate Document Single
- Generate Documents Multiple
- Get Tracking Changes In Word
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Attachment From PDF
- Extract Text By Expression
- Extract Table From PDF
- Extract Resources
Overview
This node operation converts an image from one format to another. It supports input images provided as binary data, base64-encoded strings, or via a URL. Users can specify the current format of the image and the desired new format for conversion. The node is useful in workflows where image format compatibility is required, such as preparing images for web use, optimizing for different platforms, or standardizing image formats before further processing.
Practical examples:
- Converting JPG product photos to PNG for transparent backgrounds.
- Changing TIFF scanned documents to JPG for easier sharing.
- Transforming BMP images to GIF for animated content preparation.
Properties
| Name | Meaning |
|---|---|
| Input Image Data Type | Choose how to provide the image file to convert: "Binary Data" (from previous node), "Base64 String" (base64 encoded image content), or "URL" (link to image file). |
| Input Binary Field | Name of the binary property containing the image file (used if Input Image Data Type is "Binary Data"). Default is "data". |
| Base64 Image Content | Base64 encoded string of the image content (used if Input Image Data Type is "Base64 String"). |
| Image URL | URL pointing to the image file (used if Input Image Data Type is "URL"). |
| Output File Name | Desired name for the output converted image file, e.g., "converted_image.png". |
| Current Image Format | The format of the input image. Options: BMP, GIF, JPG, PNG, TIFF. |
| New Image Format | The target format to convert the image to. Options: BMP, GIF, JPG, PNG, TIFF. |
| Use Async Processing | Whether to process the conversion asynchronously, recommended for large files. Boolean true/false. |
Output
The node outputs the converted image data typically in binary form within the json output field. The output includes the converted image file with the specified filename and format. If the input was binary or base64, the output will be binary data representing the newly formatted image. If the input was a URL, the node fetches and converts the image accordingly.
If binary data is output, it represents the image file ready for downstream nodes that accept binary inputs, such as upload or storage nodes.
Dependencies
- Requires access to image processing capabilities, likely through an internal or external library or API (not explicitly shown in the source).
- If using URL input, requires network access to fetch the image.
- No explicit external API keys or credentials are indicated in the provided code snippet.
- The node may require configuration for asynchronous processing depending on environment constraints.
Troubleshooting
Common issues:
- Invalid or inaccessible image URL leading to fetch failures.
- Unsupported or incorrectly specified current or new image formats.
- Large image files causing timeouts or memory issues if async processing is disabled.
- Incorrect binary property name when using binary data input.
Error messages and resolutions:
- Errors related to fetching image from URL: Check URL validity and network connectivity.
- Format not supported errors: Verify that the current and new image formats are among the supported options (BMP, GIF, JPG, PNG, TIFF).
- Memory or timeout errors: Enable "Use Async Processing" to handle large files more efficiently.
- Missing binary data errors: Ensure the binary property name matches the actual property containing the image data.
Links and References
- ImageMagick Formats — Common image formats supported by many converters.
- Base64 Encoding — Explanation of base64 encoding for image data.
- n8n Documentation — General n8n usage and node development guidelines.