Image

Commands for image operations.

Image Operation Commands

Image commands are applied on entire canvas

CommandValueDescription
image-canvaswidth:heightChange canvas size
image-copyCopy image to clipboard
image-copy-selectionCopy selection from all layers as merged
image-cropCrop image to selected area
image-flattenFlatten all layers
image-flip-horizontalFlip image horizontally
image-flip-verticalFlip image vertically
image-layer-from-selectionCreate new layer from selection
image-redoRedo
image-resetFlatten layers and clear everything
image-rotate-180Rotate image 180 degrees
image-rotate-90Rotate image 90 degrees clockwise
image-rotate-90-ccwRotate image 90 degrees counter-clockwise
image-sizewidth:heightResize image to given dimensions
image-undoUndo
// Set canvas size to Full HD
cmd("image-canvas:1920:1080")