PDF4me icon

PDF4me

PDF4me for n8n automates document workflows: AI-powered parsing, classification, and data extraction, plus PDF conversion, generation, merge/split, editing, forms, stamps, signatures, OCR, barcodes and Swiss QR, invoices, image processing, security, and Word tools.

Actions92

Image → Crop Image

AI-generated

Summary

Crop an image by removing pixel borders or extracting a rectangular area, then return the cropped image as binary data.

Inputs

  • Input Data Type (required) — Choose an image source: a previous node’s binary field, a base64-encoded image string, or an image URL. For binary input, specify the Input Binary Field; for base64 or URL input, provide the corresponding content or URL.
  • Output File Name — Name for the cropped image file; defaults to cropped_image.jpg.
  • Document Name — Source image name for reference; defaults to image.jpg.
  • Crop Type — Choose Border to crop pixels from the left, right, top, and bottom edges, or Rectangle to crop a specified area.
  • Border Cropping Options — For Border cropping, set pixels to remove from each edge; defaults are 10 left, 10 right, 20 top, and 20 bottom.
  • Rectangle Cropping Options — For Rectangle cropping, set the upper-left X and Y coordinates and the crop width and height in pixels; defaults are 10, 10, 50, and 50.
  • Output Binary Field Name — Name of the binary property for the output image; defaults to data.
  • Advanced Options — Custom Profiles JSON for additional API properties.

Output shape

An item containing the cropped image as binary data.

The output binary field name is configurable and defaults to data. The source pack includes only a signature-level view of this operation, so details beyond the declared inputs and output field are not visible.

Links

Discussion