Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
images → Mask an Image with a Circle Mask
AI-generatedOverview
This node allows you to apply a circular mask to an image, effectively cropping the image into a circle with a specified radius and center position. This is useful for creating profile pictures, thumbnails, or any scenario where you need a circular version of an image. For example, you could use this node to automatically generate round avatars from uploaded user photos.
Properties
| Name | Meaning |
|---|---|
| Radius | The radius for your circle. Determines how large the circular mask will be. (Required) |
| X coordinate | The horizontal position of your circle center. Defaults to 0 if not specified. |
| Y coordinate | The vertical position of your circle center. Defaults to 0 if not specified. |
| Image file | Image file to be processed. The path or reference to the input image. (Required) |
| Binary Property | Name of the binary property to which to write the data of the processed image. (Required; default: "data") |
Output
Binary Data:
The output is a binary file containing the processed image with the applied circular mask. The binary data is stored under the property name specified in "Binary Property".- The original binary properties are preserved.
- The filename and content type are set according to the processed image.
JSON:
Thejsonfield contains the original JSON data from the input item. If an error occurs and "Continue On Fail" is enabled, thejsonfield will contain anerrorproperty with details about the failure.
Dependencies
- External Service: Requires access to the 1001fx API.
- API Key: You must configure the
1001fxApicredential in n8n. - Environment: No additional environment variables are required beyond standard n8n configuration.
Troubleshooting
Common Issues:
- Missing or Invalid Image File: If the "Image file" property is not provided or does not point to a valid image, the node will fail.
- Radius Too Small or Not Provided: The "Radius" property is required and must be at least 1. If omitted or invalid, the node will throw an error.
- API Credential Errors: If the
1001fxApicredential is missing or incorrect, authentication errors will occur. - Output Binary Property Name: If the "Binary Property" name does not match the expected usage downstream, subsequent nodes may not find the processed image.
Error Messages:
- Errors from the 1001fx API are returned in the
errorproperty of the output JSON when "Continue On Fail" is enabled. - Authentication or network errors will also appear in the
errorproperty.
- Errors from the 1001fx API are returned in the