Edit Picture
Resizes, rotates, mirrors, crops or re-encodes a picture into a new file.
An action in the Photos group.
Its type is action.image_edit.
Declared ports
Section titled “Declared ports”| Port | Label | Flow | Type |
|---|---|---|---|
in |
in | execution in | — |
out |
out | execution out | — |
image |
Picture | data in | String |
maxSide |
Longest side (pixels) | data in | Int |
cropX |
Left | data in | Int |
cropY |
Top | data in | Int |
cropWidth |
Width | data in | Int |
cropHeight |
Height | data in | Int |
toFolder |
Into folder | data in | String |
name |
File name | data in | String |
state |
Result | data out | Object{changed: Boolean, uri: String, path: String, name: String, width: Int, height: Int, sizeBytes: Long, needsConfirmation: Boolean, error: String} |
Configuration
Section titled “Configuration”| Field | Key | Default | Notes |
|---|---|---|---|
| Picture | image |
— | — |
| What to do | operation |
resize |
resize, rotate, flip, crop, convert |
| Longest side (pixels) | maxSide |
1920 |
shown when operation is resize |
| Turn | turn |
right |
right, half, left; shown when operation is rotate |
| Mirror | mirror |
horizontal |
horizontal, vertical; shown when operation is flip |
| Left | cropX |
0 |
shown when operation is crop |
| Top | cropY |
0 |
shown when operation is crop |
| Width | cropWidth |
0 |
shown when operation is crop |
| Height | cropHeight |
0 |
shown when operation is crop |
| Save as | format |
same |
same, jpeg, png, webp |
| Quality | quality |
90 |
— |
| Into folder | toFolder |
— | — |
| File name | name |
— | — |
| If one is already there | whenExists |
keep_both |
replace, keep_both, skip |
- access to your photos
A missing permission is flagged in the editor rather than blocking the macro — the graph is fine, the phone is not, and granting it starts the node working with no edit here at all.