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
The node provides an image cropping functionality as part of a broader PDF and image processing suite. Specifically, the "Crop Image" operation allows users to crop images by either removing borders or selecting a specific rectangular area within the image. This is useful in scenarios where you need to trim unwanted edges from images or extract a particular section for further processing or presentation.
Practical examples include:
- Removing white or colored borders from scanned documents or photos.
- Extracting a focused region from a larger image, such as cropping a product photo to highlight the item.
- Preparing images for thumbnails or previews by cropping to a fixed rectangle.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the image file to crop. Options: Binary Data (image from previous node), Base64 String (base64 encoded image content), URL (link to image file). |
| Input Binary Field | Name of the binary property containing the image file (used when Input Data Type is Binary Data). |
| Base64 Image Content | Base64 encoded string representing the image content (used when Input Data Type is Base64 String). |
| Image URL | URL pointing to the image file to crop (used when Input Data Type is URL). |
| Output File Name | Desired name for the output cropped image file. |
| Document Name | Name of the source image file for reference purposes. |
| Crop Type | Type of cropping to perform. Options: Border (crop by removing specified pixels from each border), Rectangle (crop to a defined rectangular area). |
| Border Cropping Options | Collection of options specifying the number of pixels to crop from each side when using Border crop type: Left Border, Right Border, Top Border, Bottom Border. Each value is a number of pixels. |
| Rectangle Cropping Options | Collection of options defining the rectangular crop area when using Rectangle crop type: Upper Left X and Y coordinates, Width, and Height in pixels. |
| Output Binary Field Name | Name of the binary property where the cropped image file will be stored in the output. |
| Advanced Options | Optional JSON string to specify custom profiles or additional parameters for the cropping API call, allowing advanced customization beyond standard cropping settings. |
Output
The node outputs the cropped image as binary data under a user-defined binary property name (default is "data"). The output includes the cropped image file ready for use in subsequent workflow steps. The output also contains JSON metadata about the processed item, including any relevant information returned by the cropping service.
If the input was provided as binary data, base64 string, or URL, the output will consistently be a binary image file representing the cropped result.
Dependencies
- The node relies on an external image processing API/service to perform the actual cropping operation.
- Requires configuration of an API key or authentication token to access the image processing service.
- Network access is necessary if providing image URLs or calling the external API.
- No internal credential names are exposed; users must configure credentials generically as required by the node.
Troubleshooting
Common issues:
- Invalid or inaccessible image URL leading to failure in fetching the image.
- Incorrect base64 string format causing decoding errors.
- Crop dimensions exceeding the original image size resulting in errors.
- Missing or incorrect binary property name when using binary input.
- API authentication failures due to missing or invalid credentials.
Error messages and resolutions:
- "Image not found or inaccessible": Verify the URL is correct and publicly accessible.
- "Invalid base64 image content": Ensure the base64 string is properly encoded without extra characters.
- "Crop dimensions out of bounds": Adjust crop rectangle or border values to fit within the image dimensions.
- "Authentication failed": Check that the API key or token is correctly configured and valid.
- "Binary property not found": Confirm the binary field name matches the input data's binary property.
Links and References
- PDF4me API Profiles Documentation — For advanced profile configurations in the "Advanced Options" property.