Torch Object Storage
Parameter | Description | Value | Required |
Parameter | Description | Value | Required |
g | The origin for cropping. |
| No |
w | The width of the crop. | [0,Image width] Default: The maximum value. | No |
h | The height of the crop. | [0,Image height] Default: The maximum value. | No |
x | The horizontal offset of the starting point (X-axis) relative to the specified origin (g). | A positive value shifts the starting point to the right, while a negative value shifts the starting point to the left. | No |
y | The vertical offset of the starting point (Y-axis) relative to the specified origin (g). | A positive value shifts the starting point down, while a negative value shifts the starting point up. | No |
Origin | Coordinates |
Origin | Coordinates |
nw | 0, 0 |
north | srcW/2 - w/2, 0 |
ne | srcW - w, 0 |
west | 0, srcH/2 - h/2 |
center | srcW/2 - w/2, srcH/2 - h/2 |
east | srcW - w, srcH/2 - h/2 |
sw | 0, srcH - h |
south | srcW/2 - w/2, srcH - h |
se | srcW - w, srcH - h |