Crop Image / CropImage (internally is.workflow.actions.image.crop
)
description
summary
Crops images to a smaller rectangle.
usage
CropImage position=("Center" | "Top Left" | "Top Right" | "Bottom Left" | "Bottom Right" | "Custom") xCoordinate=number yCoordinate=number width=number height=number
arguments
position: Enumeration (Docs)
Default Value: "Center"
Allows Variables: true
Accepts a string or variable containing one of the options:
Center
Top Left
Top Right
Bottom Left
Bottom Right
Custom
xCoordinate: Number (Docs)
Placeholder: 0
Allows Variables: true
Only enabled if: argument WFImageCropPosition == Custom
Accepts a number
or variable
with a number.
yCoordinate: Number (Docs)
Placeholder: 0
Allows Variables: true
Only enabled if: argument WFImageCropPosition == Custom
Accepts a number
or variable
with a number.
width: Number (Docs)
Placeholder: 100
Default Value: 100
Allows Variables: true
Accepts a number
or variable
with a number.
height: Number (Docs)
Placeholder: 100
Default Value: 100
Allows Variables: true
Accepts a number
or variable
with a number.
source json (for developers)
{
"ActionClass": "WFImageCropAction",
"ActionKeywords": [
"transform",
"shrink",
"stretch",
"expand",
"rectangle",
"clip",
"canvas"
],
"Category": "Photos & Video",
"CreationDate": "2015-01-11T06:00:00.000Z",
"Description": {
"DescriptionSummary": "Crops images to a smaller rectangle."
},
"IconName": "Image.png",
"Input": {
"Multiple": true,
"Required": true,
"Types": [
"UIImage"
]
},
"InputPassthrough": false,
"LastModifiedDate": "2015-08-20T07:00:00.000Z",
"Name": "Crop Image",
"Output": {
"Multiple": true,
"OutputName": "Cropped Image",
"Types": [
"UIImage"
]
},
"Parameters": [
{
"Class": "WFEnumerationParameter",
"DefaultValue": "Center",
"Description": "Where on the original image the crop should occur.",
"Items": [
"Center",
"Top Left",
"Top Right",
"Bottom Left",
"Bottom Right",
"Custom"
],
"Key": "WFImageCropPosition",
"Label": "Position"
},
{
"Class": "WFNumberFieldParameter",
"Key": "WFImageCropX",
"Label": "X Coordinate",
"Placeholder": "0",
"RequiredResources": [
{
"WFParameterKey": "WFImageCropPosition",
"WFParameterValue": "Custom",
"WFResourceClass": "WFParameterRelationResource"
}
],
"TextAlignment": "Right"
},
{
"Class": "WFNumberFieldParameter",
"Key": "WFImageCropY",
"Label": "Y Coordinate",
"Placeholder": "0",
"RequiredResources": [
{
"WFParameterKey": "WFImageCropPosition",
"WFParameterValue": "Custom",
"WFResourceClass": "WFParameterRelationResource"
}
],
"TextAlignment": "Right"
},
{
"Class": "WFNumberFieldParameter",
"DefaultValue": 100,
"Key": "WFImageCropWidth",
"Label": "Width",
"Placeholder": "100",
"TextAlignment": "Right"
},
{
"Class": "WFNumberFieldParameter",
"DefaultValue": 100,
"Key": "WFImageCropHeight",
"Label": "Height",
"Placeholder": "100",
"TextAlignment": "Right"
}
],
"Subcategory": "Editing",
"SuggestedNever": true
}