Crop Image#

Crops an image according to the specified rectangle or crops a percentage of the image from the specified sides.

Input Image

[Text] The name and path to the file with the image that needs to be processed.

Supported formats:

  • .jpg;
  • .png;
  • .bmp;
  • .gif;
  • .tiff.
Output Image

[Text] The name and path to the file for saving the processed image.

If the value is empty, the same file specified in the "Input Image" property will be used. Supported formats:

  • .jpg;
  • .png;
  • .bmp;
  • .gif;
  • .tiff.
X / Left[Number] Specifies the X coordinate for cropping the image or the percentage to crop from the left.
Y / Top[Number] Specifies the Y coordinate for cropping the image or the percentage to crop from the top.
Width / Right[Number] Specifies the width for cropping the image or the percentage to crop from the right.
Height / Bottom[Number] Specifies the height for cropping the image or the percentage to crop from the bottom.
In PercentIf enabled, the image will be cropped according to the specified percentages.
Result[Text] The name and path to the processed image file.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.