Adjust size of the selected image or video


Parameters:

NameTypeDescription
actionNameString'resizeDrawingObject' image or video resizing API
[parentWidth]Number-
[width]Numberwidth in px
[height]Numberheight in px
[left]Number

Left coordinate of image, video, shape (in case of absolute position)

[top]NumberTop coordinate of image, video, shape (in case of absolute position)


Example:

editor.execCommand('resizeDrawingObject', null, 200, 100, null, null); // Set width and height to 200, 100
editor.execCommand('resizeDrawingObject', null, null, null, 200, 100); // Set left and top to 200, 100