Size Mathematics
Perform calculations on Size values
Size Mathematics
Perform calculations on Size values
Overview
The Size Maths node performs mathematical operations on Size values. Add, subtract, multiply, or divide width and height by specified values. Essential for dynamic positioning and proportional sizing.
Usage Tips
- Multiply by 0.5 to halve dimensions (for thumbnails)
- Multiply by 2 to double dimensions
- Use different X and Y values for non-uniform scaling
- Chain with Image Attributes for dynamic calculations
Common Pairings
- Image Attributes - Get input dimensions for calculations
- Insert Into - Use calculated positions for placement
- Resize Absolute - Apply calculated dimensions
Gotchas
- Division by zero will cause errors
- Operations: “Multiply”, “Divide”, “Add”, “Subtract”
- Output is a Size value, not an image
Technical Reference
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
input | Size | Yes | Input size to transform |
Outputs
| Name | Type | Description |
|---|---|---|
output | Size | Calculated size |
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params_type | text | Multiply | Operation: Multiply, Divide, Add, Subtract |
params_value_x | number | 1 | X value for calculation |
params_value_y | number | 1 | Y value for calculation |