Here is the action for conditional transpose.
There are now only 2 conditions (only two I needed):
- if image is wider than high
- if image is higher than wide
Hope this is of some use to someone else …
NOTE: this doesn't work well with scale action - see my patch for getting around this here (forum topic: Improved scale action).