Resize tool allows resizing of image or canvas to specified dimensions in pixels or percentages.

var pixie = new Pixie({
    onLoad: function() {
        var resizeTool = pixie.getTool('resize');
        resizeTool.apply(800, 500);

Resize tool methods


  • apply(width: number, height: number, percentages?: boolean): void
  • Resize image and other canvas objects. If percentages is false, width/height should be pixels, otherwise it should be percentages.


    • width: number
    • height: number
    • Default value percentages: boolean =¬†false

    Returns void

See export tool documentation on how to save resized image.